Thomas Lauf
15bb111171
Refactor configure_exclusions
2018-08-10 17:08:20 +02:00
Thomas Lauf
7fefdf80bd
Use assertItemsEqual to compare tags
2018-08-10 17:08:20 +02:00
Thomas Lauf
937fdea818
Use interval asserts in split.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
ff01bc45ca
Use interval asserts in shorten.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
49750faef4
Use interval asserts in move.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
c7ae1b1588
Improve lengthen.t
...
- Use configure_exclusions
- Use interval asserts
2018-08-10 17:08:20 +02:00
Thomas Lauf
3f5b47f96c
Use interval asserts in join.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
9569eb6144
Use configure_exclusions in gaps.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
3299967274
Use interval asserts in fill.t
2018-08-10 17:08:20 +02:00
Thomas Lauf
14b655c6e8
Improve export.t
...
- Use interval asserts
- Use UTC time
- Extract configure_exclusions method
2018-08-10 17:08:20 +02:00
Thomas Lauf
3cec514c2d
Improve delete.t
...
- Use interval asserts
2018-08-10 17:08:20 +02:00
Thomas Lauf
d5d82f02fa
Improve continue.t
...
- Use tag assertions
- Use UTC time only
2018-08-10 17:08:20 +02:00
Thomas Lauf
d62c10aa2e
Improve clock.t
...
- Use interval asserts
2018-08-10 17:08:20 +02:00
Thomas Lauf
3a8f1c081e
Improve cancel.t
...
- Reduce test cases
- Introduce interval asserts
2018-08-10 17:08:20 +02:00
Janik Rabe
616ca4b884
#157 : Change error message for non-positive IDs
2018-08-08 07:06:42 +02:00
Janik Rabe
48aa9cfdc0
CLI: Ensure IDs are non-zero
...
This fixes out-of-bounds accesses in several subcommands when the
invalid ID @0 is passed to the program.
2018-08-08 07:06:42 +02:00
Thomas Lauf
b0193b3683
#9 TI-1: Clean-up
...
- Remove unused variables
- add empty line for PEP8 conformity
2018-07-24 18:51:00 +02:00
Thomas Lauf
8685a9e2bf
#9 TI-1: Add test for undo after consecutive starts
2018-07-24 18:48:35 +02:00
Thomas Lauf
3e17dae695
#9 TI-1: Add test for undo after track with adjust hint
2018-07-24 18:46:55 +02:00
Thomas Lauf
ec5bf9fa26
#9 TI-1: Fix assert message
2018-07-24 18:46:02 +02:00
Thomas Lauf
d230e40313
#9 TI-1: Make undo work with config actions
2018-07-24 18:40:11 +02:00
Thomas Lauf
9d29a14d64
#9 TI-1: Add testsuite
...
- Simple test for each undoable interval command
- Refactored assertions
2018-07-23 22:15:01 +02:00
Thomas Lauf
2dfc1707b4
#9 TI-1: Add test for undo command
2018-07-19 19:58:16 +02:00
Harish Ved
ea671d28bd
ReviewFixes: Reset tags instead of stop/start task; formatting changes
2018-05-15 18:21:36 +02:00
Harish Ved
d07cc99729
Handling modifications to description/tag/project for task
...
The taskwarrior extension script `on-modify.timewarrior` did not forward
modifications for description/tag/project to `timew`.
This resulted in non-existent tasks (with old tag etc) contiued to be
tracked and not updated
[Closes #105 ](https://github.com/GothenburgBitFactory/timewarrior/issues/105 )
2018-05-15 18:21:36 +02:00
Thomas Lauf
1bc3e07787
#21 Split test file for 'tag' and 'untag'
2018-05-13 17:56:55 +02:00
Thomas Lauf
10dfa64cfa
#21 Add implicit @1 to command 'untag'
...
- Extend interval assertions
- Add interval assertions to tests for command 'tag'
- Add interval assertions to tests for command 'untag'
2018-05-13 17:56:55 +02:00
Thomas Lauf
c595132a9c
#21 Use open interval when no id given
...
- Add test
- Special handling if database empty
2018-05-13 17:56:55 +02:00
Thomas Lauf
4afd14ee2e
#21 Let command 'tag' fail on no tags given
...
- Add test
2018-05-13 17:56:55 +02:00
Thomas Lauf
784ecbbfd9
#21 Move check for empty ID list
...
- Sharpen error message
- Add test
2018-05-13 17:56:55 +02:00
Thomas Lauf
420bddb095
#138 Added tests
2018-05-11 18:47:03 +02:00
Thomas Lauf
2c5812f7a3
Use the empty method to check for emptiness instead of comparing to an empty object
2018-05-10 20:57:22 +02:00
Thomas Lauf
b5acfed98f
Refactor totals.py
...
- add main
- move algorithm to function
- use __future__ module
- introduce new style formatting
- restructure test_totals.t accordingly
- add test for empty range
- add tests for colored output
2018-05-10 19:22:34 +02:00
Thomas Lauf
147865b50b
Fix time output in totals.py
...
- Convert UTC time to local time in output
- Change single quote to double quote
- Use new style python formatting
- Make tests use current time
- Fix test for open interval
2018-05-09 18:25:16 +02:00
Thomas Lauf
ca7951cace
Add dedicated assertion for intervals
2018-05-04 18:05:22 +02:00
Thomas Lauf
9c97c4a1ce
TI-94 #98 Added test
2018-03-20 22:56:40 +01: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
0a992e0601
TI-93 #97 Add test
2018-03-08 20:44:10 +01:00
Thomas Lauf
63285c085d
#111 Make test_totals.t run at any time
2018-03-08 20:37:27 +01:00
Thomas Lauf
946ac0ad68
Refactor test
...
- allow for jitter to stabilize test
- use triple quote strings
2018-03-07 21:45:25 +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
311c8c2c83
#111 Make track.t run on any time
2018-03-07 08:09:52 +01:00
Thomas Lauf
a281321fe4
#111 Make summary.t run on any time
2018-03-07 08:09:12 +01:00
Thomas Lauf
9d51a8e993
#111 Make export.t run on any time
2018-03-05 19:04:38 +01:00
Thomas Lauf
3e9bd1113d
#111 Make move.t run on any time
2018-03-05 17:15:05 +01:00
Thomas Lauf
f18e105c71
#111 Make tag.t run on any time
2018-03-05 14:15:05 +01:00
Thomas Lauf
a8a9c8e5d6
#111 Make shorten.t run on any time
2018-03-05 08:50:02 +01:00
Thomas Lauf
a21a12974e
#111 Make lengthen.t run on any time
2018-03-05 08:49:31 +01:00