mirror of
https://github.com/topydo/topydo.git
synced 2024-05-10 18:58:35 +00:00
Fix tests for test completion test change
This commit is contained in:
parent
5d7a742095
commit
f3dc108d58
|
@ -1,4 +1,3 @@
|
|||
x 2014-10-19 Complete
|
||||
x 2014-10-20 Another one complete
|
||||
x Not complete
|
||||
(C) Active
|
||||
|
|
|
@ -33,7 +33,7 @@ class ArchiveCommandTest(CommandTest):
|
|||
|
||||
self.assertTrue(todolist.dirty)
|
||||
self.assertTrue(archive.dirty)
|
||||
self.assertEqual(todolist.print_todos(), "x Not complete\n(C) Active")
|
||||
self.assertEqual(todolist.print_todos(), "(C) Active")
|
||||
self.assertEqual(archive.print_todos(), "x 2014-10-19 Complete\nx 2014-10-20 Another one complete")
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
@ -229,12 +229,6 @@ class TodoBaseTester(TopydoTest):
|
|||
|
||||
self.assertFalse(todo.is_completed())
|
||||
|
||||
def test_completion3(self):
|
||||
""" A completed todo must start with an x followed by a date. """
|
||||
todo = TodoBase("x Not complete")
|
||||
|
||||
self.assertFalse(todo.is_completed())
|
||||
|
||||
def test_completion4(self):
|
||||
""" A completed todo must start with an x followed by a date. """
|
||||
todo = TodoBase("X 2014-06-14 Not complete")
|
||||
|
|
Loading…
Reference in a new issue