mirror of
https://github.com/GothenburgBitFactory/timewarrior.git
synced 2025-07-07 20:06:39 +02:00
Tests: Removed redundant test
This commit is contained in:
parent
899025740c
commit
0849c73d88
1 changed files with 0 additions and 20 deletions
20
test/move.t
20
test/move.t
|
@ -214,26 +214,6 @@ class TestMove(TestCase):
|
||||||
self.assertFalse('end' in j[1])
|
self.assertFalse('end' in j[1])
|
||||||
self.assertFalse('tags' in j[1])
|
self.assertFalse('tags' in j[1])
|
||||||
|
|
||||||
def test_move_interval_over_another_with_adjust(self):
|
|
||||||
"""Move an interval over another with :adjust"""
|
|
||||||
|
|
||||||
code, out, err = self.t("track 20170301T110000Z - 20170301T140000Z foo")
|
|
||||||
code, out, err = self.t("track 20170301T150000Z - 20170301T160000Z foo")
|
|
||||||
|
|
||||||
# Move the interval.
|
|
||||||
code, out, err = self.t("move @1 20170301T133000Z :adjust")
|
|
||||||
# Display is in local time zone so we can't match time exactly.
|
|
||||||
self.assertRegexpMatches(out, 'Moved @1 to 2017-03-01T\d\d:\d\d:\d\d\n')
|
|
||||||
|
|
||||||
# There should now be an interval starting at 13:30.
|
|
||||||
starts = [str(x['start']) for x in self.t.export()]
|
|
||||||
self.assertIn('20170301T133000Z', starts)
|
|
||||||
|
|
||||||
# There should no longer be an interval ending at
|
|
||||||
# 14:00 as that should have been adjusted.
|
|
||||||
ends = [str(x['end']) for x in self.t.export()]
|
|
||||||
self.assertNotIn('20170301T140000Z', ends)
|
|
||||||
|
|
||||||
# TODO Add :adjust tests.
|
# TODO Add :adjust tests.
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue