From 90d018e0f0c05ecbaed4699bc743b846abeafced Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 22 Mar 2015 15:32:54 +0100 Subject: [PATCH] tests: Add test for modifiying a large number of tasks at once --- tasklib/tests.py | 7 +++++++ 1 file changed, 7 insertions(+) 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( -- 2.39.2