tests: Add test for TW-1788

This commit is contained in:
Tomas Babej 2016-03-22 23:43:27 +01:00 committed by Paul Beckingham
parent cc324fdb8d
commit fe58b42f68

View file

@ -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):