kevin-deldycke-blog
:notebook: My blog, based on Pelican. (by kdeldycke)
freezegun
Let your Python tests travel through time (by spulec)
kevin-deldycke-blog | freezegun | |
---|---|---|
2 | 9 | |
35 | 3,972 | |
- | - | |
8.0 | 7.5 | |
8 days ago | 13 days ago | |
Python | Python | |
GNU General Public License v3.0 or later | Apache License 2.0 |
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.
kevin-deldycke-blog
Posts with mentions or reviews of kevin-deldycke-blog.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-07-16.
-
Introduction to Flaky Tests by Example
If you are curious about the context that led to the apparition of those flaky tests, my former manager Kevin Deldycke provides a more detailed view in a very interesting post: Billing Pipeline: A Critical Time Sensitive System.
-
FFmpeg 4.4
Indeed! Here is my collection of FFmpeg CLIs: https://github.com/kdeldycke/kevin-deldycke-blog/blob/main/c...
freezegun
Posts with mentions or reviews of freezegun.
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
* in C++.
On Python, just use freezegun to inject controllable timestamps in response to calls to time methods.
https://github.com/spulec/freezegun
-
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