mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Fix asserted strings in context tests
This commit is contained in:
parent
1a0f479394
commit
9748fa2ab1
1 changed files with 3 additions and 3 deletions
|
@ -105,7 +105,7 @@ class ContextManagementTest(TestCase):
|
||||||
output = self.t(('context', 'delete', 'work'))[1]
|
output = self.t(('context', 'delete', 'work'))[1]
|
||||||
|
|
||||||
# Assert correct output
|
# Assert correct output
|
||||||
self.assertIn("Context 'work' undefined.", output)
|
self.assertIn("Context 'work' deleted.", output)
|
||||||
|
|
||||||
# Assert that taskrc does not countain context work definition
|
# Assert that taskrc does not countain context work definition
|
||||||
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
||||||
|
@ -118,7 +118,7 @@ class ContextManagementTest(TestCase):
|
||||||
output = self.t.runError(('context', 'delete', 'work'))[1]
|
output = self.t.runError(('context', 'delete', 'work'))[1]
|
||||||
|
|
||||||
# Assert correct output
|
# Assert correct output
|
||||||
self.assertIn("Context 'work' was not undefined.", output)
|
self.assertIn("Context 'work' not deleted.", output)
|
||||||
|
|
||||||
# Assert that taskrc does not countain context work definition
|
# Assert that taskrc does not countain context work definition
|
||||||
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
||||||
|
@ -133,7 +133,7 @@ class ContextManagementTest(TestCase):
|
||||||
output = self.t(('context', 'delete', 'work'))[1]
|
output = self.t(('context', 'delete', 'work'))[1]
|
||||||
|
|
||||||
# Assert correct output
|
# Assert correct output
|
||||||
self.assertIn("Context 'work' undefined.", output)
|
self.assertIn("Context 'work' deleted.", output)
|
||||||
|
|
||||||
# Assert that taskrc does not countain context work definition
|
# Assert that taskrc does not countain context work definition
|
||||||
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
self.assertFalse(any('context.work=' in line for line in self.t.taskrc_content))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue