From 1627cfda21540a6ba3509e7214dd5700dfe04b89 Mon Sep 17 00:00:00 2001 From: Vinta Chen Date: Fri, 2 Oct 2026 12:42:03 +0800 Subject: [PATCH] audit: sweep Testing, replace freezegun with time-machine Removed: freezegun (45,539,075 downloads/month, pypistats 2026-10-02): fails the 12-month activity line (last commit 2025-08-19, last release 2025-08-09), and time-machine (18,960,236/month, released 3.5.1 on 2026-09-08) is an active successor for the same job that ships a freezegun migration tool, so freezegun does not qualify as a mature-stable keep. time-machine takes the slot as a challenger, last in Mock. Co-Authored-By: Claude --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f9ff701..847e148f 100644 --- a/README.md +++ b/README.md @@ -667,9 +667,9 @@ _Libraries for testing codebases and generating test data. Also see [awesome-pyt - Mock - [mock](https://docs.python.org/3/library/unittest.mock.html) - (Python standard library) A mocking and patching library. - [responses](https://github.com/getsentry/responses) - A utility library for mocking out the requests Python library. - - [freezegun](https://github.com/spulec/freezegun) - Travel through time by mocking the datetime module. - [vcrpy](https://github.com/kevin1024/vcrpy) - Record and replay HTTP interactions on your tests. - [respx](https://github.com/lundberg/respx) - Mock HTTPX with awesome request patterns and response side effects. + - [time-machine](https://github.com/adamchainz/time-machine) - Travel through time in your tests by mocking the current time at the C level. - Object Factories - [factory_boy](https://github.com/FactoryBoy/factory_boy) - A test fixtures replacement for Python. - [polyfactory](https://github.com/litestar-org/polyfactory) - A mock data generation library based on type hints (continuation of `pydantic-factories`).