time-machine
docker-images
time-machine | docker-images | |
---|---|---|
2 | 1 | |
606 | 56 | |
- | - | |
8.6 | 7.7 | |
4 days ago | 7 days ago | |
Python | Dockerfile | |
MIT License | - |
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
-
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
docker-images
What are some alternatives?
freezegun - Let your Python tests travel through time
c_unit_tests - C unit tests with a small header-only library.
doublex
headlock - An adapter for making C code testable from Python (see https://headlock.readthedocs.io/en/latest)
mock - The Python mock library
examc - proof of concept C unit test library using linker sections
betamax - A VCR imitation designed only for python-requests.
hypothesis - Hypothesis is a powerful, flexible, and easy to use library for property-based testing.
httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module
responses - A utility for mocking out the Python Requests library.
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing
Moto - A library that allows you to easily mock out tests based on AWS infrastructure.