python-tuf/tests
Michał Górny ee27bcccc1 tests: Use freezegun for time mocking to fix pypy3 compatibility
Use freezegun for time mocking instead of manually patching the datetime
module, as it provides a more streamlined solution that works both
on CPython and on PyPy.  Unfortunately, due to differences between
the C datetime extension used by CPython, and the pure Python version
of datetime (used by PyPy, and as a fallback on CPython), there does not
seem to be a trivial way to mock time that would work with both
versions.

Fixes #2708

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2024-10-09 14:01:09 +02:00
..
generated_data WIP: Update to new securesystemslib API 2024-04-25 14:27:54 +03:00
repository_data WIP: Update to new securesystemslib API 2024-04-25 14:27:54 +03:00
.coveragerc tests: Add some initial tests for tuf.repository 2024-06-03 10:12:35 +03:00
__init__.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
aggregate_tests.py Apply black on tests/aggregate_tests.py 2021-12-07 11:51:23 +02:00
repository_simulator.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
simple_server.py tests: Remove unused options from simple_server 2022-01-21 11:31:09 +02:00
test_api.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_examples.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_fetcher_ng.py lint: Enable flake8-annotations 2024-05-06 09:19:19 +03:00
test_metadata_eq_.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_metadata_generation.py lint: Update formatting for ruff 3.x 2024-03-07 10:05:36 +02:00
test_metadata_serialization.py lint: Update formatting for ruff 3.x 2024-03-07 10:05:36 +02:00
test_repository.py repository: handle online key changes (#2650) 2024-06-04 09:56:53 +03:00
test_trusted_metadata_set.py WIP: Update to new securesystemslib API 2024-04-25 14:27:54 +03:00
test_updater_consistent_snapshot.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_updater_delegation_graphs.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_updater_fetch_target.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_updater_key_rotations.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_updater_ng.py changing useragent 2024-05-20 21:55:02 +05:30
test_updater_top_level_update.py tests: Use freezegun for time mocking to fix pypy3 compatibility 2024-10-09 14:01:09 +02:00
test_updater_validation.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
test_utils.py lint: Enable flake8-executable 2024-05-06 09:19:19 +03:00
utils.py linting: Enable all Ruff rulesets by default 2024-05-07 15:39:53 +03:00