Commit graph

29 commits

Author SHA1 Message Date
Shaun Ruffell
845ab2f805 test: Check move / annotate commands with both synthetic and non-synthetic intervals in database
These tests are designed to check that `getIntervalsById()` will not
count the open interval at the end of the database twice.

See https://github.com/GothenburgBitFactory/timewarrior/pull/269/files#r368238522
2020-01-26 19:49:23 +01:00
Shaun Ruffell
7b438830e2 test: Revert recent annotate.t and move.t changes
In commits 18559df275 and eaed297964 I had updated existing
tests when I should have created new tests to check mixed synethic /
non-synethic intervals.

This change reverts those changes and a follow-on commit will add the
new tests.

See https://github.com/GothenburgBitFactory/timewarrior/pull/269/files#r368238522
2020-01-26 19:49:23 +01:00
Shaun Ruffell
18559df275 test/move.t: Make sure move handles mix of synthetic and non-synthetic intervals
This test updates one of the existing tests to make sure that an non-synthetic
interval in addition with the synthetic intervals can be moved properly.
2020-01-17 17:48:57 +01:00
Thomas Lauf
34a152c794 Replace assertRegexpMatches with assertRegex
- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
9dd8257cc0 Replace assertEquals with assertEqual
- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
7fa7ca5f04 Remove vim annotations
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:33 +01:00
Thomas Lauf
f53e1cef6d Switch to python 3
- #259

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-11 10:20:32 +01:00
Thomas Lauf
8b5a701eeb Require python2 not python2.7 for tests
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-29 01:31:08 +02:00
Thomas Lauf
712b4b78b2 Revert "Run test with available python"
This reverts commit 6b89e122

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-24 21:10:57 +02:00
Thomas Lauf
6b89e12287 Run test with available python
- do not enforce python 2.7

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-06-22 21:21:11 +02:00
Thomas Lauf
2f7e247859 Add tests for intervals enclosing month borders 2018-09-18 21:06:33 +02:00
Thomas Lauf
84a1ffea8f Use configure_exclusions in move.t 2018-08-10 17:33:08 +02:00
Thomas Lauf
49750faef4 Use interval asserts in move.t 2018-08-10 17:08:20 +02:00
Simon Ruderich
2271bd9eea Use https:// link for opensource.org 2018-03-16 23:11:08 +01:00
Thomas Lauf
81a7bba721 fix pydoc, coding style, optimize imports 2018-03-11 21:45:16 +01:00
Thomas Lauf
55508fd201 Reformat files
- Fix indentation
- Fix spacing
2018-03-07 21:23:43 +01:00
Thomas Lauf
dd42f844c6 Python refactoring
- Optimize imports
- Adjust coding style to PEP8
- Remove obsolete comments
2018-03-07 08:09:55 +01:00
Thomas Lauf
3e9bd1113d #111 Make move.t run on any time 2018-03-05 17:15:05 +01:00
Paul Beckingham
88d644d193 Copyright 2018 2017-12-31 19:37:13 -05:00
Paul Beckingham
0849c73d88 Tests: Removed redundant test 2017-08-05 11:07:03 +01:00
Paul Beckingham
899025740c Tests: Added TI-66 test
- Thanks to A M.
2017-08-05 10:40:26 +01:00
Paul Beckingham
2c23344b57 Tests: Corrected time in test 2017-05-21 13:12:45 -04:00
Paul Beckingham
3d588dc07c Tests: Added TI-73 test
- Thanks to A M
2017-05-21 13:12:14 -04:00
Thomas Lauf
33e0cd185d TI-68: Add tests for modifying synthetic intervals 2017-04-08 14:50:54 +02:00
Paul Beckingham
d1a7c313c7 Tests: Added TI-66 test
- Thanks to A M.
2017-03-02 18:04:44 -05:00
Paul Beckingham
1091cc2085 Copyright update 2017-01-01 12:45:32 -05:00
Paul Beckingham
000f1cfbd8 Tests: fixed date-sensitivity of test, somewhat 2016-07-01 09:50:44 -04:00
Paul Beckingham
f6555c436e Tests: Added tests for a move bug 2016-06-11 10:33:52 -04:00
Paul Beckingham
ec84fd447c Tests: Added move tests 2016-06-08 07:31:03 -04:00