X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/blobdiff_plain/65a1431e753fccbbc735a58491b395070081dc8a..05e79557756e05985aaeb51092e94877541c253b:/tasklib/tests.py diff --git a/tasklib/tests.py b/tasklib/tests.py index fc30da4..f1247af 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( @@ -835,12 +842,12 @@ class DatetimeStringTest(TasklibTest): now = local_zone.localize(datetime.datetime.now()) due_date = local_zone.localize(datetime.datetime( year=now.year, - month=9, - day=3, - hour=0, + month=12, + day=31, + hour=23, minute=59, second=59 - )) + )) - datetime.timedelta(0,4 * 30 * 86400) self.assertEqual(due_date, t['due']) def test_filtering_with_string_datetime(self):