mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Use updated unittest method
This commit is contained in:
parent
407d66d681
commit
02db131fa1
50 changed files with 315 additions and 315 deletions
|
@ -172,7 +172,7 @@ class TestBug1031(TestCase):
|
|||
code, out, err = self.t("1 info")
|
||||
|
||||
expected = "Description\s+to"
|
||||
self.assertRegexpMatches(out, expected)
|
||||
self.assertRegex(out, expected)
|
||||
|
||||
def test_alias_to_to(self):
|
||||
"""1031: alias working as expected: 'from -- to' -> 'to to'"""
|
||||
|
@ -180,7 +180,7 @@ class TestBug1031(TestCase):
|
|||
code, out, err = self.t("1 info")
|
||||
|
||||
expected = "Description\s+to to"
|
||||
self.assertRegexpMatches(out, expected)
|
||||
self.assertRegex(out, expected)
|
||||
|
||||
def test_alias_to_from(self):
|
||||
"""1031: alias working as expected: 'to -- from' -> 'to from'"""
|
||||
|
@ -188,7 +188,7 @@ class TestBug1031(TestCase):
|
|||
code, out, err = self.t("1 info")
|
||||
|
||||
expected = "Description\s+to from"
|
||||
self.assertRegexpMatches(out, expected)
|
||||
self.assertRegex(out, expected)
|
||||
|
||||
|
||||
class Test1445(TestCase):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue