pytest-trio icon indicating copy to clipboard operation
pytest-trio copied to clipboard

Pytest plugin for trio

Results 35 pytest-trio issues
Sort by recently updated
recently updated
newest added

Right now we have to jump through hoops to make sure our `pytest_runtest_call` runs as early as possible, because it doesn't actually want to run anything, it just wants to...

Following https://github.com/python-trio/pytest-trio/issues/11#issuecomment-350600995 A `closed_tcp_port` seems like a good improvement for me. Especially because it docstring can contain explanation about why there is no `unused_tcp_port` fixture and how to work without...

enhancement

Closes https://github.com/python-trio/pytest-trio/issues/143. Also updates some CI config, since I was in the area.

https://anyio.readthedocs.io/en/stable/testing.html has a much cleaner implementation at a fraction of the code size: https://github.com/agronholm/anyio/blob/master/src/anyio/pytest_plugin.py Discussions in Gitter also suggests people prefer running pytest-anyio in trio mode over directly running pytest-trio....

`trio_asyncio` as another mode of the `trio_run` ini file option allows us to run tests with an `asyncio` loop implicitly available to all async tests. This way one doesn't need...