mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Expand test for waiting report
Add tasks to test exclusion of completed and deleted tasks.
This commit is contained in:
parent
4287b33796
commit
6a79e614da
1 changed files with 8 additions and 4 deletions
12
test/wait.t
12
test/wait.t
|
@ -87,14 +87,18 @@ class Test1486(TestCase):
|
||||||
|
|
||||||
def test_waiting(self):
|
def test_waiting(self):
|
||||||
"""1486: Verify waiting report shows waiting tasks"""
|
"""1486: Verify waiting report shows waiting tasks"""
|
||||||
self.t.config('uda.sep.type', 'string')
|
|
||||||
|
|
||||||
self.t('add regular')
|
self.t('add regular')
|
||||||
self.t('add waited wait:later')
|
self.t('add waited and pending wait:later')
|
||||||
|
self.t('add waited but deleted wait:later')
|
||||||
|
self.t('add waited but done wait:later')
|
||||||
|
self.t('rc.confirmation=off 3 delete')
|
||||||
|
self.t('4 done')
|
||||||
|
|
||||||
code, out, err = self.t('waiting')
|
code, out, err = self.t('waiting')
|
||||||
self.assertEqual(0, code, "Exit code was non-zero ({0})".format(code))
|
self.assertEqual(0, code, "Exit code was non-zero ({0})".format(code))
|
||||||
self.assertIn('waited', out)
|
self.assertIn('waited and pending', out)
|
||||||
|
self.assertNotIn('waited but deleted', out)
|
||||||
|
self.assertNotIn('waited but done', out)
|
||||||
self.assertNotIn('regular', out)
|
self.assertNotIn('regular', out)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue