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:
10
test/wait.t
10
test/wait.t
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user