Make test coverage happy. 1 second seems to be not enough to create a comment when running the test coverage.
svn path=/plone.app.discussion/trunk/; revision=33309
This commit is contained in:
parent
0c1d32d7c6
commit
6ca20c7514
@ -552,7 +552,7 @@ class ConversationTest(PloneTestCase):
|
||||
# check if the latest comment has been updated
|
||||
# the latest comment should be exactly four days old
|
||||
self.assert_(conversation.last_comment_date < datetime.now() - timedelta(days=3, hours=23, minutes=59, seconds=59))
|
||||
self.assert_(conversation.last_comment_date > datetime.now() - timedelta(days=4, seconds=1))
|
||||
self.assert_(conversation.last_comment_date > datetime.now() - timedelta(days=4, seconds=2))
|
||||
|
||||
def test_get_comments_full(self):
|
||||
pass
|
||||
|
Loading…
Reference in New Issue
Block a user