tests: Reverse expectations for wait attribute removal uponn done/delete

The wait attribute is no longer expected to be removed by the
done/delete commands.
This commit is contained in:
Tomas Babej 2021-08-08 09:50:47 -04:00
parent 861e8a6414
commit b6ce51e83d

View file

@ -98,30 +98,30 @@ class Test1486(TestCase):
self.assertNotIn('regular', out)
class TestFeature2322(TestCase):
class TestFeature2563(TestCase):
def setUp(self):
"""Executed before each test in the class"""
self.t = Task()
def test_done_unwait(self):
"""2322: Done should remove the wait attribute"""
"""2563: Done should NOT remove the wait attribute"""
self.t("add foo wait:tomorrow")
code, out, err = self.t("export")
self.assertIn('"wait":', out)
self.t("1 done")
code, out, err = self.t("export")
self.assertNotIn('"wait":', out)
self.assertIn('"wait":', out)
def test_delete_unwait(self):
"""2322: Delete should remove the wait attribute"""
"""2563: Delete should NOT remove the wait attribute"""
self.t("add bar wait:tomorrow")
code, out, err = self.t("export")
self.assertIn('"wait":', out)
self.t("1 delete", input="y\n")
code, out, err = self.t("export")
self.assertNotIn('"wait":', out)
self.assertIn('"wait":', out)
if __name__ == "__main__":