Fix one test about backslash

The test was failing because it expected "Created task 1"
but it saw "Created task 0a436fd8-7f06-4168-a66d-bbc940498af9".

Instead, the new code looks at the description of task 1.
This commit is contained in:
Yoichi Hirai 2020-03-18 20:08:15 +01:00 committed by Paul Beckingham
parent 6727d08da0
commit ab443a8ecf

View file

@ -108,10 +108,8 @@ class TestBug1436(TestCase):
# Python turns \\ --> \, therefore \\\\\\\\ --> \\\\
# Some process launch thing does the same, therefore \\\\ --> \\
# Taskwarrior sees \\, which means \
code, out, err = self.t("add Use this backslash \\\\\\\\")
self.assertIn("Created task 1", out)
code, out, err = self.t("list")
self.t("add Use this backslash \\\\\\\\")
code, out, err = self.t("_get 1.description")
self.assertIn("Use this backslash \\", out)
def test_backslashes(self):