mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Check for correct handling when same task entered twice
Signed-off-by: Wilhelm Schuermann <wimschuermann@googlemail.com>
This commit is contained in:
parent
6e22a1f279
commit
7d02676f68
1 changed files with 10 additions and 0 deletions
|
@ -223,6 +223,16 @@ class TestImport(TestCase):
|
|||
for _uuid in ["a1111111-a111-a111-a111-a11111111111","a2222222-a222-a222-a222-a22222222222"]:
|
||||
self.assertTrue((_t["depends"][0] == _uuid) or (_t["depends"][1] == _uuid))
|
||||
|
||||
def test_import_same_task_twice(self):
|
||||
"""Test import same task twice"""
|
||||
_data = """{"uuid":"a1111111-a222-a333-a444-a55555555555","description":"data4"}"""
|
||||
self.t("import", input=_data)
|
||||
code, out1, err = self.t("export")
|
||||
self.t.faketime('+1s')
|
||||
self.t("import", input=_data)
|
||||
code, out2, err = self.t("export")
|
||||
self.assertEqual(out1, out2)
|
||||
|
||||
|
||||
class TestImportExportRoundtrip(TestCase):
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue