We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
conftest.py
1 parent 5acee62 commit 88331bdCopy full SHA for 88331bd
1 file changed
tests/conftest.py
@@ -1,12 +1,18 @@
1
import functools
2
+from typing import Any, Callable, Dict
3
4
import pytest
5
6
from starlette.testclient import TestClient
7
8
+TestClientFactory = Callable[..., TestClient]
9
+
10
11
@pytest.fixture
-def test_client_factory(anyio_backend_name, anyio_backend_options):
12
+def test_client_factory(
13
+ anyio_backend_name: str,
14
+ anyio_backend_options: Dict[str, Any],
15
+) -> TestClientFactory:
16
# anyio_backend_name defined by:
17
# https://anyio.readthedocs.io/en/stable/testing.html#specifying-the-backends-to-run-on
18
return functools.partial(
0 commit comments