From: Tomas Babej Date: Sun, 22 Mar 2015 14:32:54 +0000 (+0100) Subject: tests: Add test for modifiying a large number of tasks at once X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/90d018e0f0c05ecbaed4699bc743b846abeafced tests: Add test for modifiying a large number of tasks at once --- diff --git a/tasklib/tests.py b/tasklib/tests.py index fc30da4..71ee90b 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -661,6 +661,13 @@ class TaskTest(TasklibTest): t.save() self.assertEqual(len(self.tw.tasks.pending()), 2) + def test_modify_number_of_tasks_at_once(self): + for i in range(1, 100): + Task(self.tw, description="test task %d" % i, tags=['test']).save() + + self.tw.execute_command(['+test', 'mod', 'unified', 'description']) + + class TaskFromHookTest(TasklibTest): input_add_data = six.StringIO(