Thomas Lauf
6d79ea4a6d
Update copyright statements
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-09-18 12:33:17 +02:00
Thomas Lauf
082708a7ca
Fix typos and wording
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021
2021-01-02 02:52:39 -05:00
Thomas Lauf
990e0772d0
Add tests for stop command
...
- Stop with no datetime (rare case of e.g. `timew stop :all`)
- `stop` with tag after `start` without tags
2020-08-19 15:41:34 +02:00
Thomas Lauf
ad58309159
Update Copyright
...
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02:00
Shaun Ruffell
85c5655f79
Replace 'ѕ' with 's' in test docstrings
...
Since the recent switch to python3, I've been noticing that some of the tests
have been aborting with the following error when I use LANG=en_US instead of
LANG=en_US.UTF-8:
UnicodeEncodeError: 'latin-1' codec can't encode character '\u0455' in position 57: ordinal not in range(256)
Arguably, I should run with a unicode locale while running the test, but it
*looks* to me like the original ѕ was not intended.
2020-01-26 22:38:52 +01:00
Thomas Lauf
13a8edc7ef
Resharpen test stop with id should suggest modify command
...
- Amends #270
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2019-12-27 16:10:28 +01:00
Shaun Ruffell
145af6603c
Stop with id should suggest modify command
...
Recently I was trying to stop an interval that I had left open over the
weekend, but I had already started a new interval at the beginning of the
week. The error I was received was "The end of a date range must be after the
start." which was confusing to me.
After a few moments I realized I should have been using the modify command.
Now the stop command will suggest modify if someone attempts to use stop for
this purpose.
2019-12-27 15:47:39 +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
34e8317d01
Improve stop.t
...
- use interval asserts
- use utc time
- use configure_exclusions
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
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
7e9fe82fc3
TI-102: Add tests
2018-01-19 16:25:22 +01:00
Paul Beckingham
88d644d193
Copyright 2018
2017-12-31 19:37:13 -05:00
Thomas Lauf
e505129d5c
TI-64: Command 'stop' with date before current interval's start date causes segfault
...
- Show error message if stop date is before current interval's start date
- Add test for this use case
2017-02-09 08:58:22 -05:00
Paul Beckingham
1091cc2085
Copyright update
2017-01-01 12:45:32 -05:00
Paul Beckingham
106ca0d9cf
Tests: fixed date-sensitivity of test
2016-07-01 09:50:31 -04:00
Sergey Trofimov
df15141768
Tests: Make stop tests check export output.
2016-06-15 17:28:56 -04:00
Sergey Trofimov
e102f033b9
Tests: Check that stop preserves tags
2016-06-14 13:06:11 -04:00
Paul Beckingham
08559a461d
Tests: Added exhaustive test cases for stopping tags
2016-06-13 08:46:24 -04:00
Paul Beckingham
c3bb349072
Tests: Removed whitespace
2016-06-04 10:35:19 -04:00
Paul Beckingham
781be152a2
Tests: Added stop with specific time test
2016-05-16 09:13:57 -05:00