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.
1 parent e182b57 commit f75bb99Copy full SHA for f75bb99
1 file changed
tests/conftest.py
@@ -65,7 +65,9 @@ async def user_test() -> AsyncIterator[AsyncConnection]:
65
yield connection
66
67
68
-@pytest.fixture
+# The PHP API fixture can be session scoped since they do not need access to
69
+# function-scoped database transactions.
70
+@pytest.fixture(scope="session")
71
async def php_api() -> AsyncIterator[httpx.AsyncClient]:
72
async with httpx.AsyncClient(base_url=PHP_API_URL) as client:
73
yield client
0 commit comments