freezegun
rez
Our great sponsors
freezegun | rez | |
---|---|---|
9 | 13 | |
3,969 | 890 | |
- | 1.8% | |
6.7 | 8.7 | |
2 days ago | 1 day ago | |
Python | Python | |
Apache License 2.0 | Apache License 2.0 |
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.
freezegun
-
About time: how to unit test code that depends on time
* in C++.
On Python, just use freezegun to inject controllable timestamps in response to calls to time methods.
-
How to simulate a delay in a test?
I had much fun with https://github.com/spulec/freezegun
-
Unnecessary unit-test mocking?
If you're ever in Python-land, freezegun is a super neat library that snags all the time/date related functions and lets you control time from code.
- Microsoft Exchange stops passing mail due to bug on 1/1/22
-
Python: Please stop screwing over Linux distros
For example, freezegun which is a common testing utility.
-
Mocking Python datetime In Tests With FreezeGun
FreezeGun is a library that helps with mocking out the datetime.datetime.now function. It is a very useful tool for testing code that uses the datetime library.
-
Introduction to Flaky Tests by Example
Another way of doing so would be to inject the value directly to the method. Python has a very good library to sandbox the tests when using the built-in datetime objects: freezegun. Once again, and unfortunately for us, the project was using arrow so this was not a possibility.
- FreezeGun: Let your Python tests travel through time
-
As a beginner to testing, what is the best and fastest way to create testing cases?
If you do time sensitive tests, use freeze gun to make them reproducible https://github.com/spulec/freezegun
rez
- Rez package manager alternatives
-
package configuration system (Like Rez)
What alternatives are there to rez?
-
Simple and Lightweight Package Management System
To sum up the previous post, I currently use and like (rez)[https://github.com/AcademySoftwareFoundation/rez], but I am wondering if there is something better out there with the same idea of rez, i.e.
-
[Linux] - Package Management System
I am looking for a quick and easy to use tool to manage version control of different packages. Mainly on Linux but multi platform support would be great. I have found and used rez and I quite like it. I find it lightweight and I only barely need to use it if I wanted to, i.e. I could link to all the packages installed locally by myself. However, if there is something out there that is more widely adopted and would have lifetime support then I would prefer to use that.
-
Setting up Nuke in a mock studio environment
Great stuff! Will check it out. https://github.com/nerdvegas/rez
-
How do you download a RPM by name and version, using Python or terminal?
It's mainly for the purpose of taking these RPMs and converting them to a slightly different package manager (rez). Ideally, any found solution would be able to work with older versions as a result. Though I'm learning online that yum, yumdownloader, and other tools seem to restrict output based on data about the user's host OS
-
Python: Please stop screwing over Linux distros
Take a look into rez
- Rez: Integrated package configuration,build and deployment system for software
- GitHub - nerdvegas/rez: An integrated package configuration, build and deployment system for software
- Rez cross platform package manager
What are some alternatives?
time-machine - Travel through time in your tests.
Poetry - Python packaging and dependency management made easy
python-libfaketime - A fast time mocking alternative to freezegun that wraps libfaketime.
virtualenv - Virtual Python Environment builder
Moto - A library that allows you to easily mock out tests based on AWS infrastructure.
conda - A system-level, binary package and environment manager running on all major operating systems and platforms.
VCR.py - Automatically mock your HTTP interactions to simplify and speed up testing
Pipenv - Python Development Workflow for Humans.
httpretty - Intercept HTTP requests at the Python socket level. Fakes the whole socket module
Autoenv - Directory-based environments.
mock - The Python mock library
pyenv - Simple Python version management