mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
861e8a6414
commit
b6ce51e83d
1 changed files with 5 additions and 5 deletions
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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue