Skip to content

Commit

Permalink
Clarify behavior of tests with Trac 1.2
Browse files Browse the repository at this point in the history
Refs #116.
  • Loading branch information
rjollos committed Nov 18, 2016
1 parent a477007 commit 45ec5bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtests.py
Expand Up @@ -861,6 +861,7 @@ def testNotification(self):
ticket = Ticket(self.env)
ticket['summary'] = 'I need a commit!'
ticket['status'] = 'new'
ticket['owner'] = ''
ticket_id = ticket.insert()

ticket = Ticket(self.env, ticket_id)
Expand All @@ -875,8 +876,7 @@ def testNotification(self):
self.assertEqual(ticket['status'], 'closed')
self.assertEqual(ticket['resolution'], 'fixed')
changelog = ticket.get_changelog()
# Trac 1.2 generates three fields, Trac 1.0 four.
self.assertGreaterEqual(len(changelog), 3)
self.assertEqual(len(changelog), 4)
self.assertEqual(changelog[0][2], 'comment')
self.assertIn("here you go", changelog[0][4])

Expand Down

0 comments on commit 45ec5bb

Please sign in to comment.