mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added bulk.t diagnostics
- Because running the test on different platforms doesn't show any errors, but automated flod testing does. Mystery...
This commit is contained in:
parent
d8e0cf714b
commit
a5c722361d
1 changed files with 10 additions and 3 deletions
13
test/bulk.t
13
test/bulk.t
|
@ -89,16 +89,23 @@ class TestBulk(TestCase):
|
|||
|
||||
# Test with 3 tasks. 3 is considered bulk. rc.confirmation has no effect on bulk
|
||||
|
||||
# Delete task 1 'one'? (yes/no/all/quit) --> timeout
|
||||
code, out, err = self.t.runError("1-3 delete rc.confirmation:off", timeout=0.2)
|
||||
self.tap(out)
|
||||
self.tap(err)
|
||||
self.assertNotIn("(yes/no)", out)
|
||||
self.assertIn("(yes/no/all/quit)", out)
|
||||
self.assertNotIn("Deleting task 1", out)
|
||||
self.assertNotIn("Deleting task 2", out)
|
||||
self.assertNotIn("Deleting task 3", out)
|
||||
self.assertNotIn("Deleting task", out)
|
||||
# task timeout on input - exit by signal is negative in Python
|
||||
self.assertEqual(code, -signal.SIGABRT)
|
||||
|
||||
# Delete task 1 'one'? (yes/no/all/quit) Deleting task 1 'one'.
|
||||
# Delete task 2 'two'? (yes/no/all/quit) Deleting task 2 'two'.
|
||||
# Delete task 3 'three'? (yes/no/all/quit) Deleting task 3 'three'.
|
||||
# Deleted 3 tasks.
|
||||
code, out, err = self.t("1-3 delete rc.confirmation:off", input="y\ny\ny\n")
|
||||
self.tap(out)
|
||||
self.tap(err)
|
||||
self.assertNotIn("(yes/no)", out)
|
||||
self.assertIn("(yes/no/all/quit)", out)
|
||||
self.assertIn("Deleting task 1", out)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue