mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: Added gaps test with interval
This commit is contained in:
parent
74ac4e0541
commit
59c74185bf
1 changed files with 7 additions and 0 deletions
|
@ -61,6 +61,13 @@ class TestGaps(TestCase):
|
|||
code, out, err = self.t("gaps")
|
||||
self.assertRegexpMatches(out, r'\s{30}23:59:59')
|
||||
|
||||
def test_single_unobstructed_interval(self):
|
||||
"""Add one interval and export it as-is"""
|
||||
self.t("track 8am - 8pm foo")
|
||||
|
||||
code, out, err = self.t("gaps")
|
||||
self.assertRegexpMatches(out, r'\s{30}11:59:59')
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
unittest.main(testRunner=TAPTestRunner())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue