mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added (modified) tests for TW-1647
This commit is contained in:
parent
6777e04957
commit
024ac5dffb
1 changed files with 11 additions and 0 deletions
11
test/ids.t
11
test/ids.t
|
@ -99,6 +99,17 @@ class TestIDMisParse(TestCase):
|
|||
code, out, err = self.t("_get 1.description")
|
||||
self.assertEqual("123\n", out)
|
||||
|
||||
def test_parse_numbers_as_ids_not_patterns(self):
|
||||
"""Verify that numbers are parsed as IDs"""
|
||||
self.t("add 2 two") # ID 1
|
||||
self.t("add 1 one") # ID 2
|
||||
self.t("add 3 three") # ID 3
|
||||
|
||||
code, out, err = self.t("2 ls rc.verbose:nothing")
|
||||
self.assertIn("one", out)
|
||||
self.assertNotIn("two", out)
|
||||
self.assertNotIn("three", out)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue