question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
adamchainzcommented, Jun 5, 2020

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!

0reactions
adamchainzcommented, Dec 27, 2021

Decided not to wrap non-TestCase classes in #187. I think that’s all the features we wanted to copy.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found