From 020ce4dc253c46a35c98cc718b0a1a1b8e9aceac Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Mon, 23 Mar 2015 19:49:03 +0100 Subject: [PATCH] tests: Amend hook tests to test for value removal as well --- tasklib/tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasklib/tests.py b/tasklib/tests.py index b33fd59..1e79ca8 100644 --- a/tasklib/tests.py +++ b/tasklib/tests.py @@ -739,6 +739,7 @@ class TaskFromHookTest(TasklibTest): '{"description":"Buy some milk",' '"entry":"20141118T050231Z",' '"status":"pending",' + '"start":"20141119T152233Z",' '"uuid":"a360fc44-315c-4366-b70c-ea7e7520b749"}') input_modify_data = six.StringIO(input_add_data.getvalue() + '\n' + @@ -767,7 +768,7 @@ class TaskFromHookTest(TasklibTest): self.assertEqual(t._original_data['status'], "pending") self.assertEqual(t._original_data['description'], "Buy some milk") self.assertEqual(set(t._modified_fields), - set(['status', 'description'])) + set(['status', 'description', 'start'])) def test_export_data(self): t = Task(self.tw, description="test task", -- 2.39.2