-
Notifications
You must be signed in to change notification settings - Fork 180
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Things to check first
- I have searched the existing issues and didn't find my feature already requested there
Feature description
pytest-trio has a very useful feature of supporting custom clocks that are passed to trio.run() when running a test (see https://pytest-trio.readthedocs.io/en/stable/reference.html#mock_clock, basically it looks through fixtures to see if something derives from trio.abc.Clock). I couldn't find a way to do this for anyio tests. Is it something that's impossible by design, or just hasn't been implemented yet?
Use case
Reducing test runtime for code that relies on some internal waiting times, e.g. running recurrent tasks.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request