From e08ef84973316f3801e5c5cc286eb6b21a2bcfde Mon Sep 17 00:00:00 2001 From: Gauthier Bastien Date: Mon, 30 Jul 2018 10:19:28 +0200 Subject: [PATCH] Fixed highlight history link test now that empty values are handled specifically and are not in the ignorableHistoryComments() --- src/imio/history/tests/test_documentbylineviewlet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imio/history/tests/test_documentbylineviewlet.py b/src/imio/history/tests/test_documentbylineviewlet.py index 4135793..b6db21e 100644 --- a/src/imio/history/tests/test_documentbylineviewlet.py +++ b/src/imio/history/tests/test_documentbylineviewlet.py @@ -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')