time-machine
Travel through time in your tests. (by adamchainz)
doublex
By DavidVilla
Our great sponsors
time-machine | doublex | |
---|---|---|
2 | - | |
603 | - | |
- | - | |
8.6 | - | |
5 days ago | almost 8 years ago | |
Python | ||
MIT License | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
time-machine
Posts with mentions or reviews of time-machine.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-12-19.
-
About time: how to unit test code that depends on time
Freezegun is pretty much unmaintained. You want time-machine https://github.com/adamchainz/time-machine
-
Running C unit tests with pytest
There are lots of good mocking fixtures available for pytest. I've used this one for clock stuff in the past: https://github.com/adamchainz/time-machine#pytest-plugin
doublex
Posts with mentions or reviews of doublex.
We have used some of these posts to build our list of alternatives
and similar projects.
We haven't tracked posts mentioning doublex yet.
Tracking mentions began in Dec 2020.
What are some alternatives?
When comparing time-machine and doublex you can also consider the following projects:
freezegun - Let your Python tests travel through time
mock - The Python mock library
betamax - A VCR imitation designed only for python-requests.
Moto - A library that allows you to easily mock out tests based on AWS infrastructure.
responses - A utility for mocking out the Python Requests library.
Mocket - a socket mock framework - for all kinds of socket animals, web-clients included
httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module
httmock - A mocking library for requests
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing
pymox - Pymox - Python mocking on steroids