Commit graph

25 commits

Author SHA1 Message Date
Thomas Lauf
549cb7ba61 Update copyright
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2025-04-19 23:00:44 +02:00
Scott Mcdermott
05724a9d21 Make python tests use timezone, py3.12 deprecated tz-less utcnow()
Python upstream is trying to eliminate tz-naive date functions that
imply anything to do with a timezone, even UTC.  They have deprecated
datetime.datetime.utcnow() in Python 3.12 and thus running tests emits
many warnings for us.

We switch to instantiate datetime objects taht are intended to reflect
UTC to have a timezone, or if we instantiate naive ones and then later
convert, we do the full conversion.

After the changes, the tests still work on Python 3.9, but now also on
Python 3.12 without warnings.

See PR description for #632 for more details.

Signed-off-by: Scott Mcdermott <scott@smemsh.net>
2024-09-13 15:45:11 +02:00
Thomas Lauf
14bed139f6 Update copyrights
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-04 22:44:44 +02:00
Thomas Lauf
993ae85d5c Add check whether requested intervals have been found when searching by ID
- Restores behaviour which got lost when switching to the new interval filtering in 9968b9e9
- Add test for each command

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2022-01-09 11:43:56 +01:00
Thomas Lauf
29d3043f29 Update copyright ranges
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2021-05-27 21:11:32 +02:00
Thomas Lauf
6bf708dbeb Use dynamic test data for interval enclosing a month border in delete.t
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-07-17 13:59:05 +02:00
Thomas Lauf
90b5b1085e Adapt delete.t and move.t as today is now interpreted as a range
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-07-15 17:22:32 +02:00
Thomas Lauf
ad58309159 Update Copyright
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-04-19 12:41:23 +02: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
5b5a7c1e3d Use configure_exclusions in delete.t 2018-08-10 17:13:56 +02:00
Thomas Lauf
3cec514c2d Improve delete.t
- Use interval asserts
2018-08-10 17:08:20 +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
ca7951cace Add dedicated assertion for intervals 2018-05-04 18:05:22 +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
Paul Beckingham
88d644d193 Copyright 2018 2017-12-31 19:37:13 -05:00
Paul Beckingham
1ed8d8e07c Tests: Added test for TI-58 2017-02-23 16:25:35 -05:00
Paul Beckingham
1091cc2085 Copyright update 2017-01-01 12:45:32 -05:00
Paul Beckingham
631916b659 Tests: Added 'delete' command 2016-07-18 17:22:14 -04:00