mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Add tests for intervals enclosing month borders
This commit is contained in:
parent
fef522c53d
commit
2f7e247859
8 changed files with 80 additions and 1 deletions
|
@ -107,6 +107,15 @@ class TestDelete(TestCase):
|
|||
expectedTags=['foo'],
|
||||
description='remaining interval')
|
||||
|
||||
def test_delete_interval_which_encloses_month_border(self):
|
||||
"""Delete an interval which encloses a month border"""
|
||||
self.t("track 20180831T220000 - 20180901T030000 foo")
|
||||
self.t("delete @1")
|
||||
|
||||
j = self.t.export()
|
||||
|
||||
self.assertEqual(len(j), 0)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
from simpletap import TAPTestRunner
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue