From ab443a8ecf9905f1b44cb31303679014bf3b0b6d Mon Sep 17 00:00:00 2001 From: Yoichi Hirai Date: Wed, 18 Mar 2020 20:08:15 +0100 Subject: [PATCH] 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. --- test/quotes.t | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/quotes.t b/test/quotes.t index f30808114..b47f30ea9 100755 --- a/test/quotes.t +++ b/test/quotes.t @@ -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):