Complete copying freezegun API
See original GitHub issue-
.tick()
method -
.move_to()
method -
auto_tick_seconds
(?) - #14 - Wrapping non-TestCase classes like pytest classes. Probably adopt the unittest mechanism where only callables starting
test_
(or a configurable prefix) are wrapped, rather than the unnecessary, perhaps dangerous “wrap every callable” behaviour freezegun uses.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
How to use the freezegun.api.FakeDatetime function in ... - Snyk
To help you get started, we've selected a few freezegun.api.FakeDatetime examples, based on popular ways it is used in public projects.
Read more >pg8000 can't handle freezegun's FakeDate/FakeDateTime ...
It looks like pg8000 has a list of types that it can accept self.py_types . You could try appending the freezegun class to...
Read more >freezegun - PyPI
FreezeGun is a library that allows your Python tests to travel through time by mocking the datetime module. Usage. Once the decorator or...
Read more >Freezegun - Real Joy For Fake Dates In Python - PyBites
Freezegun is a library for mocking Python datetimes. ... interested in the details, this section of the freezegun API code is a fine...
Read more >Freezetime does not work with FastAPI test client
As mentioned here, define another function and assign the reference of that function to the model. That way, the freezegun should be able...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Help with any of it would be great! These methods should all be implementable in the python side of things so no need to dive into the C. No particular idea right now, show me what you come up with!
Decided not to wrap non-
TestCase
classes in #187. I think that’s all the features we wanted to copy.