Commit graph

44 commits

Author SHA1 Message Date
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
6d79ea4a6d Update copyright statements
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-09-18 12:33:17 +02:00
Thomas Lauf
14d364bff7 Drop unused assignments
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-17 08:17:29 +02:00
Thomas Lauf
2a73e3bc77 Add quotes to soothe spell checker
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2023-04-17 08:17:29 +02:00
Tomas Babej
e5870380a4
doc: Update copyright to 2021 2021-01-02 02:52:39 -05:00
Thomas Lauf
532d1b4e91 Add test for get dom.tracked.tags with a tag with quotes
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 09:20:22 +02:00
Thomas Lauf
dafca6662d Accommodate tests for missing space at end of line
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-10-02 09:07:32 +02:00
Thomas Lauf
c71eeb6dfd Add DOM-query for ids
- Closes #126

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-05-10 21:44:30 +02:00
Thomas Lauf
a508dd21ea Get and use filter from CLI when processing DOM references
- Closes #188

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-05-10 21:44:30 +02:00
Thomas Lauf
6e5236d472 Add DOM query dom.tracked.tags
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-05-10 21:44:30 +02:00
Thomas Lauf
5c234c95f9 Move test setup to the test methods
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-05-10 21:44:30 +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
bf87509329 Handle case of empty interval, fix tests
Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
2020-03-03 22:24:45 +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
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
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
Thomas Lauf
e9412388ba Tests: Fix python doc strings 2017-03-25 15:36:16 +01:00
Paul Beckingham
1091cc2085 Copyright update 2017-01-01 12:45:32 -05:00
Paul Beckingham
b99c9e9df2 Tests: Added 'dom.rc.<name>' tests 2016-07-16 16:35:32 -04:00
Paul Beckingham
9216fc30b4 Tests: Renamed some tests 2016-07-16 16:19:14 -04:00
Paul Beckingham
af32e51e6b Tests: Added 'dom.tracked.N.json' tests 2016-07-16 16:19:02 -04:00
Paul Beckingham
4313dbb708 Tests: Added 'dom.tracked.N.duration' tests 2016-07-16 16:12:01 -04:00
Paul Beckingham
b5bcefb133 Tests: Added 'dom.tracked.N.end' tests 2016-07-16 16:05:56 -04:00
Paul Beckingham
890a3bc179 Tests: Added 'dom.tracked.N.start' tests 2016-07-16 16:00:57 -04:00
Paul Beckingham
bd64196f35 Tests: Added 'dom.tracked.N.tag.N' tests 2016-07-16 15:44:39 -04:00
Paul Beckingham
a43edf2c1b Tests: Added 'dom.tracked.N.tag.count' tests 2016-07-16 14:29:01 -04:00
Paul Beckingham
1c36634e0e dom: dom.active.tag.count is now an error when there is no open inteval 2016-07-16 14:22:23 -04:00
Paul Beckingham
e964ea5076 Tests: Added 'dom.tracked.count' tests 2016-07-16 13:46:09 -04:00
Paul Beckingham
80b465e0ac Tests: Added 'dom.active.json' tests 2016-07-16 13:07:30 -04:00
Paul Beckingham
8ec28d2b48 Tests: Added 'dom.tag.N' tests 2016-07-16 12:47:44 -04:00
Paul Beckingham
630df1a16a Tests: Added 'dom.tag.count' tests 2016-07-16 12:36:51 -04:00
Paul Beckingham
3fd2020ab0 Tests: Added dom.active.duration tests 2016-07-16 12:22:42 -04:00
Paul Beckingham
e543174c19 Tests: Added dom.active.start tests 2016-07-16 12:15:34 -04:00
Paul Beckingham
95f590d4a3 Tests: Added 'dom.active.tag.N' tests 2016-07-16 11:49:02 -04:00
Paul Beckingham
f5261c6f28 Tests: Added 'dom.active.tag.count' tests 2016-07-16 11:25:25 -04:00
Paul Beckingham
d8bfeea142 Tests: Added dom.active tests 2016-07-16 10:44:36 -04:00
Paul Beckingham
899d9848b1 Tests: Added DOM unrecognized reference test 2016-07-16 10:44:17 -04:00