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
10
test/move.t
10
test/move.t
|
@ -186,6 +186,16 @@ class TestMove(TestCase):
|
|||
expectedTags=[],
|
||||
description="unmodified interval")
|
||||
|
||||
def test_move_interval_to_enclose_a_month_border(self):
|
||||
"""Move an interval to enclose a month border"""
|
||||
self.t("track 20180831T180000 - 20180831T230000 foo")
|
||||
self.t("move @1 20180831T220000")
|
||||
|
||||
j = self.t.export()
|
||||
|
||||
self.assertEqual(len(j), 1)
|
||||
self.assertClosedInterval(j[0])
|
||||
|
||||
# TODO Add :adjust tests.
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue