mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Unit Tests
- Improved test by checking error codes.
This commit is contained in:
parent
76998987c5
commit
cd89800e56
1 changed files with 3 additions and 2 deletions
|
@ -40,9 +40,10 @@ class TestBug1359(TestCase):
|
|||
|
||||
def test_add_hyphenated(self):
|
||||
""""one-two-three" in description triggers Malformed ID error"""
|
||||
self.t(("add", "one-two-three.ca"))
|
||||
code, out, err = self.t(("1", "info"))
|
||||
code, out, err = self.t(("add", "one-two-three.ca"))
|
||||
self.assertEqual(code, 0)
|
||||
|
||||
code, out, err = self.t(("1", "info"))
|
||||
self.assertIn("one-two-three.ca", out)
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue