mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: Try adding time-only interval that should be recorded
This commit is contained in:
parent
f0a6fd1ec3
commit
6b39089ea8
1 changed files with 6 additions and 0 deletions
|
@ -118,6 +118,12 @@ class TestTrack(TestCase):
|
||||||
code, out, err = self.t.runError("track 20160709T1430 - 20160709T1530 foo")
|
code, out, err = self.t.runError("track 20160709T1430 - 20160709T1530 foo")
|
||||||
self.assertIn('You cannot overlap intervals. Correct the start/end time, or specify the :adjust hint.', err)
|
self.assertIn('You cannot overlap intervals. Correct the start/end time, or specify the :adjust hint.', err)
|
||||||
|
|
||||||
|
def test_track_at_time(self):
|
||||||
|
"""Test adding time in the past, using only times, fails to be recorded."""
|
||||||
|
self.t('track 12:01am - 12:02am "Test track interval"')
|
||||||
|
j = self.t.export()
|
||||||
|
self.assertTrue(len(j) > 0)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
from simpletap import TAPTestRunner
|
from simpletap import TAPTestRunner
|
||||||
unittest.main(testRunner=TAPTestRunner())
|
unittest.main(testRunner=TAPTestRunner())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue