mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
tests: Add test for TW-1788
This commit is contained in:
parent
cc324fdb8d
commit
fe58b42f68
1 changed files with 13 additions and 0 deletions
13
test/start.t
13
test/start.t
|
@ -95,6 +95,19 @@ class TestStart(TestCase):
|
|||
code, out, err = self.t("long")
|
||||
self.assertIn("Nu stannar vi", out)
|
||||
|
||||
def test_start_remove_end(self):
|
||||
"""Verify that starting a task removes end timestamp"""
|
||||
self.t("add one")
|
||||
uuid = self.t('_get 1.uuid')[1].strip()
|
||||
|
||||
self.t("1 done")
|
||||
task = self.t.export()[0]
|
||||
self.assertIn("end", task)
|
||||
|
||||
self.t(uuid + " start")
|
||||
task = self.t.export()[0]
|
||||
self.assertNotIn("end", task)
|
||||
|
||||
|
||||
class TestActiveTaskHandling(TestCase):
|
||||
def setUp(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue