Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trio.testing.MockClock-like functionality #260

Open
graingert opened this issue Apr 22, 2021 · 0 comments
Open

trio.testing.MockClock-like functionality #260

graingert opened this issue Apr 22, 2021 · 0 comments
Labels
enhancement New feature or request pytest plugin

Comments

@graingert
Copy link
Collaborator

graingert commented Apr 22, 2021

some way of jumping forwards in time for asyncio and trio backends, and maybe a pytest-fixture for it too

https://trio.readthedocs.io/en/stable/reference-testing.html#time-and-timeouts

a pytest-asyncio fixture for time travelling: pytest-dev/pytest-asyncio#113
an asynctest unittest TestCase: https://asynctest.readthedocs.io/en/latest/_modules/asynctest/case.html#ClockedTestCase.advance

@agronholm agronholm added enhancement New feature or request pytest plugin labels Apr 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request pytest plugin
Projects
None yet
Development

No branches or pull requests

2 participants