Commit 4843cee7 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Make test deterministic on test infrastructure

parent 5f5476fc
...@@ -332,8 +332,11 @@ class ListCommandTest(CommandTest): ...@@ -332,8 +332,11 @@ class ListCommandTest(CommandTest):
self.assertEqual(self.output, "| 1| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n") self.assertEqual(self.output, "| 1| (C) 2015-11-05 Foo @Context2 Not@Context +Project1 Not+Project\n")
self.assertEqual(self.errors, "") self.assertEqual(self.errors, "")
def test_list43(self): @mock.patch('topydo.commands.ListCommand.get_terminal_size')
def test_list43(self, mock_terminal_size):
"""Test basic 'N' parameter.""" """Test basic 'N' parameter."""
mock_terminal_size.return_value = self.terminal_size(81, 100)
command = ListCommand(["-N"], self.todolist, self.out, self.error) command = ListCommand(["-N"], self.todolist, self.out, self.error)
command.execute() command.execute()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment