Browse Source

🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

pull/13163/head
pre-commit-ci[bot] 4 months ago
parent
commit
3f8448fc17
  1. 1
      docs/en/docs/advanced/async-tests.md
  2. 4
      docs_src/async_tests/test_main.py

1
docs/en/docs/advanced/async-tests.md

@ -87,4 +87,3 @@ def event_loop() -> Generator[AbstractEventLoop, None, None]:
``` ```
/// ///

4
docs_src/async_tests/test_main.py

@ -6,7 +6,9 @@ from .main import app, lifespan
@pytest.mark.anyio @pytest.mark.anyio
async def test_root(): async def test_root():
async with AsyncClient(transport=ASGITransport(app=app), base_url="http://test") as client: async with AsyncClient(
transport=ASGITransport(app=app), base_url="http://test"
) as client:
async with lifespan(app=app): async with lifespan(app=app):
# Send a GET request to the root endpoint # Send a GET request to the root endpoint
response = await client.get("/") response = await client.get("/")

Loading…
Cancel
Save