(
anyio_backend_name: Literal["asyncio", "trio"],
anyio_backend_options: dict[str, Any],
)
| 11 | |
| 12 | @pytest.fixture |
| 13 | def test_client_factory( |
| 14 | anyio_backend_name: Literal[class="st">"asyncio", class="st">"trio"], |
| 15 | anyio_backend_options: dict[str, Any], |
| 16 | ) -> TestClientFactory: |
| 17 | class="cm"># anyio_backend_name defined by: |
| 18 | class="cm"># https://anyio.readthedocs.io/en/stable/testing.html#specifying-the-backends-to-run-on |
| 19 | return functools.partial( |
| 20 | TestClient, |
| 21 | backend=anyio_backend_name, |
| 22 | backend_options=anyio_backend_options, |
| 23 | ) |
no outgoing calls
no test coverage detected