Skip to content

Commit

Permalink
Added test cases for 'non-missing' reports.
Browse files Browse the repository at this point in the history
  • Loading branch information
rjollos committed Apr 23, 2013
1 parent bb78cb8 commit a3725d7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions trac/ticket/tests/wikisyntax.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def ticket_teardown(tc):
{12}, {abc}
------------------------------
<p>
<a class="missing report">{1}</a>, <a class="missing report">{2}</a>
<a class="report" href="/report/1">{1}</a>, <a class="report" href="/report/2">{2}</a>
<a class="missing report">{12}</a>, {abc}
</p>
------------------------------
Expand Down Expand Up @@ -174,7 +174,15 @@ def ticket_teardown(tc):
""" # '

def report_setup(tc):
pass # TBD
def create_report(tc, id):
with tc.env.db_transaction as db:
cursor = db.cursor()
cursor.execute("""
INSERT INTO report (id,title,query,description)
VALUES (%s,%s,'SELECT 1','')""", (id, 'Report %s' % id))
create_report(tc, 1)
create_report(tc, 2)



MILESTONE_TEST_CASES = u"""
Expand Down

0 comments on commit a3725d7

Please sign in to comment.