Commit graph

465 commits

Author SHA1 Message Date
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
Thomas Lauf
0d2f37a806 #111 Make continue.t run on any time 2018-03-05 08:12:00 +01:00
Thomas Lauf
89d59e3363 Fix time values in tests 2018-03-05 06:47:39 +01:00
Thomas Lauf
9147f743e9 Fail early if summary is empty 2018-02-23 20:35:33 +01:00
Thomas Lauf
b46ac77f64 Add test for case with open interval 2018-02-18 22:58:08 +01:00
Thomas Lauf
25c0dd4492 Optimize imports, reformat test input 2018-02-18 22:57:05 +01:00
Thomas Lauf
7e9fe82fc3 TI-102: Add tests 2018-01-19 16:25:22 +01:00
Thomas Lauf
fa10230d37 Add tests for command "summary"
- with open interval
- with day gap
- with week change
- with several tracks per day
2018-01-11 21:18:16 +01:00
Thomas Lauf
8c12227a9d Optimize imports 2018-01-11 21:18:16 +01:00
Thomas Lauf
17463da32f Add test descriptions 2018-01-11 21:08:44 +01:00
Thomas Lauf
f1b3b3bb72 Refactor CmdDefault
- restore original command behaviour:return exit code 0 if tracking is active, 1 if not
- show welcome screen on first run
- add/update tests
2018-01-05 23:34:16 +01:00
Thomas Lauf
35e5098b51 Extract join function
- use join function for std::vector<std::string> from libshared
- add join function for std::set<std::string>
- add joinQuotedIfNeeded for std::set<std::string> and std::vector<std::string>
- add unit tests
- These functions could be replaced with templates and moved to libshared.
2018-01-05 14:25:57 +01:00
Thomas Lauf
95380bbe96 Optimize includes 2018-01-05 14:21:37 +01:00
Thomas Lauf
3aa932eafe Fix typos 2018-01-05 10:49:17 +01:00
Thomas Lauf
ac18340757 Fix test summary.t
- Make it work on single digit calendar weeks
2018-01-05 09:32:41 +01:00
Thomas Lauf
0900c35767 Fix number of expected tests 2018-01-05 09:14:46 +01:00
Paul Beckingham
88d644d193 Copyright 2018 2017-12-31 19:37:13 -05:00
Thomas Lauf
874b163f78 Text beautification 2017-12-15 08:41:07 +01:00
Paul Beckingham
0dea44594e TW-1936: Tweak tests to have fuller TAP compliance
- Thanks to Paul J. Fenwick.
2017-12-09 23:18:54 -05:00
Thomas Lauf
28c39f8f7e Fix filter for summary when only a date is given
- add test
2017-12-07 09:26:21 +01:00
Thomas Lauf
e1a5319c0f TI-90: Add test for 'continue' with range 2017-12-02 19:17:54 +01:00
Thomas Lauf
9173c86a65 TI-90: Small refactoring 2017-12-02 19:17:54 +01:00
Thomas Lauf
74fa268164 TI-90: Add test for continue with start date 2017-12-02 19:17:54 +01:00
Paul Beckingham
cb25162edf Tests: Added TI-75 test 2017-08-05 12:32:58 +01: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
Lukas Barth
25a802cc26 Add test for underscore escaping 2017-08-05 10:15:19 +01:00
Paul Beckingham
ad75fffb03 TI-69: timew config converts integers to times
- Thanks to Thomas Lauf.
2017-07-30 11:58:38 +01:00
Paul Beckingham
5167a05d77 Tests: Added future tracking negative test 2017-05-28 09:48:24 -04: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
Paul Beckingham
6b39089ea8 Tests: Try adding time-only interval that should be recorded 2017-05-21 11:10:28 -04:00
Paul Beckingham
367533efda Tests: Fixed test that failed to catch an exception
- And also had a bad test count
2017-04-13 21:14:22 -04:00
Thomas Lauf
01a3c8e3f6 TI-62: Fix test for invalid command 2017-04-11 07:04:05 +02:00
Paul Beckingham
6ade46085e Tests: Removed unnecessary platform.t 2017-04-08 13:41:25 -04:00