timewarrior/test
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
..
basetest Remove stuff for Python < 3.7 2023-04-17 08:17:29 +02:00
docker Jettison centos7 and centos8 in favor of centos-stream9 2024-06-05 20:26:22 +02:00
scripts Tweak output of macOS test script 2024-01-13 18:57:49 +01:00
simpletap Fix grammar and spelling 2023-04-17 08:17:29 +02:00
test_extensions Add tests for configurable report range, update man page 2022-12-31 22:22:49 +01:00
.gitignore test: Add test to ensure Datafile throws when deleteInterval fails 2020-08-11 10:39:34 +02:00
annotate.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
AtomicFile.t Polish up bash scripts 2023-04-18 23:18:43 +02:00
AtomicFileTest.cpp Unify coding style 2023-12-23 22:38:31 +01:00
bash_tap.sh Polish up bash scripts 2023-04-18 23:18:43 +02:00
bash_tap_ti.sh Fix output redirection 2023-06-17 14:19:02 +02:00
cancel.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
chart.t Update copyright statements 2023-09-18 12:33:17 +02:00
cli.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
clock.t Update copyright statements 2023-09-18 12:33:17 +02:00
CMakeLists.txt Make CMake/Make signal start of test suite run 2023-06-17 14:19:02 +02:00
config.t Update copyright statements 2023-09-18 12:33:17 +02:00
continue.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
data.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
Datafile.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
DatetimeParser.t.cpp Update copyright ranges 2023-12-23 23:14:46 +01:00
delete.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
dom.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
exclusion.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
export.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
extensions.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
fill.t Update copyright statements 2023-09-18 12:33:17 +02:00
gaps.t Update copyright statements 2023-09-18 12:33:17 +02:00
help.t Update copyright statements 2023-09-18 12:33:17 +02:00
helper.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
ids.t Update copyright statements 2023-09-18 12:33:17 +02:00
interval.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
join.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
lengthen.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
modify.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
move.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
performance-plot.py Improve performance-plot script 2021-11-19 23:20:25 +01:00
performance-test.sh Polish up bash scripts 2023-04-18 23:18:43 +02:00
problems Add --details option 2022-12-29 13:56:21 +01:00
quiet.t Update copyright statements 2023-09-18 12:33:17 +02:00
range.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
resize.t Update copyright statements 2023-09-18 12:33:17 +02:00
retag.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
rules.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
run_all Set correct application name in test suite run script 2023-06-17 14:19:02 +02:00
shorten.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
split.t Update copyright statements 2023-09-18 12:33:17 +02:00
start.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
stop.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
summary.t Use raw python strings for regex escapes in test summary 2024-09-13 15:45:11 +02:00
tag.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
TagInfoDatabase.t.cpp Update copyright statements 2023-09-18 12:33:17 +02:00
tags.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
TempDir.h Update copyright statements 2023-09-18 12:33:17 +02:00
test.cpp Update copyright ranges 2023-12-23 23:14:46 +01:00
test.h Update copyright ranges 2023-12-23 23:14:46 +01:00
test_totals.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
timemachine Polish up bash scripts 2023-04-18 23:18:43 +02:00
track.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
undo.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
untag.t Make python tests use timezone, py3.12 deprecated tz-less utcnow() 2024-09-13 15:45:11 +02:00
util.t.cpp Update copyright ranges 2023-12-23 23:14:46 +01:00
version.t Update copyrights 2023-04-04 22:44:44 +02:00
write-failure.t Fix typos and wording 2023-04-04 22:44:44 +02:00