mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: fixed date-sensitivity of test
This commit is contained in:
parent
15df8dfff2
commit
106ca0d9cf
1 changed files with 4 additions and 4 deletions
|
@ -67,7 +67,7 @@ class TestStop(TestCase):
|
|||
|
||||
def test_stop_all(self):
|
||||
"""Start three tags, stop"""
|
||||
self.t("start 20160613T084100 one two three")
|
||||
self.t("start 5mins ago one two three")
|
||||
code, out, err = self.t("stop")
|
||||
self.assertIn("Recorded one three two", out)
|
||||
|
||||
|
@ -77,7 +77,7 @@ class TestStop(TestCase):
|
|||
|
||||
def test_stop_three(self):
|
||||
"""Start three tags, stop three"""
|
||||
self.t("start 20160613T084100 one two three")
|
||||
self.t("start 5mins ago one two three")
|
||||
code, out, err = self.t("stop one two three")
|
||||
self.assertIn("Recorded one three two", out)
|
||||
|
||||
|
@ -87,7 +87,7 @@ class TestStop(TestCase):
|
|||
|
||||
def test_stop_two(self):
|
||||
"""Start three tags, stop two"""
|
||||
self.t("start 20160613T084100 one two three")
|
||||
self.t("start 5mins ago one two three")
|
||||
code, out, err = self.t("stop one three")
|
||||
self.assertIn("Tracking two", out)
|
||||
|
||||
|
@ -98,7 +98,7 @@ class TestStop(TestCase):
|
|||
|
||||
def test_stop_fourth(self):
|
||||
"""Start three tags, stop fourth"""
|
||||
self.t("start 20160613T084100 one two three")
|
||||
self.t("start 5mins ago one two three")
|
||||
code, out, err = self.t.runError("stop four")
|
||||
self.assertIn("The current interval does not have the 'four' tag.", err)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue