Skip to content

Commit

Permalink
forgotten async test not marked
Browse files Browse the repository at this point in the history
  • Loading branch information
euri10 committed Nov 29, 2024
1 parent 5cb0289 commit a97e262
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/examples/testing/test_get_session_data_async.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import pytest

from litestar import Litestar, Request, post
from litestar.middleware.session.server_side import ServerSideSessionConfig
from litestar.testing import AsyncTestClient
Expand All @@ -13,6 +15,7 @@ def set_session_data(request: Request) -> None:
app = Litestar(route_handlers=[set_session_data], middleware=[session_config.middleware], debug=True)


@pytest.mark.anyio
async def test_set_session_data() -> None:
async with AsyncTestClient(app=app, session_config=session_config) as client:
await client.post("/test")
Expand Down

0 comments on commit a97e262

Please sign in to comment.