mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Test: Added start tests
This commit is contained in:
parent
476561fb87
commit
a1b4f338cd
1 changed files with 10 additions and 0 deletions
|
@ -54,6 +54,16 @@ class TestStart(TestCase):
|
|||
tl = self.t.export()
|
||||
self.assertEqual(tl[0]["status"], "pending")
|
||||
|
||||
def test_start_nothing(self):
|
||||
"""Verify error message when no tasks are specified"""
|
||||
code, out, err = self.t.runError ("999 start")
|
||||
self.assertIn("No tasks specified.", err)
|
||||
|
||||
def test_start_started(self):
|
||||
"""Verify error when starting a started task"""
|
||||
self.t("1 start")
|
||||
code, out, err = self.t.runError("1 start")
|
||||
self.assertIn("Task 1 'one' already started.", out)
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue