Skip to content

Commit

Permalink
Fixed highlight history link test now that empty values are handled s…
Browse files Browse the repository at this point in the history
…pecifically and are not in the ignorableHistoryComments()
  • Loading branch information
gbastien committed Jul 30, 2018
1 parent ae49731 commit e08ef84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imio/history/tests/test_documentbylineviewlet.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def test_highlight_history_link(self):
adapter = getAdapter(self.portal.doc, IImioHistory, 'workflow')
# not highlighted because '' is an ignored comment
history = adapter.getHistory()
self.assertFalse(history[-1]['comments'])
self.assertFalse(self.viewlet.highlight_history_link())
self.assertTrue(history[-1]['comments'] in adapter.ignorableHistoryComments())

# now 'publish' the doc and add a comment, last event has a comment
self.wft.doActionFor(self.portal.doc, 'publish', comment='my publish comment')
Expand Down

0 comments on commit e08ef84

Please sign in to comment.