Skip to content

Commit 6486f9e

Browse files
authored
from asgi_lifespan import LifespanManager
1 parent 42e58bc commit 6486f9e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

asgi/lifespan-test-httpx.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ You can wrap an ASGI app in `async with LifespanManager(app):` and the correct l
1515
Here's how to use it to [trigger lifespan events in a test](https://github.com/simonw/datasette-debug-asgi/blob/72d568d32a3159c763ce908c0b269736935c6987/test_datasette_debug_asgi.py):
1616

1717
```python
18+
from asgi_lifespan import LifespanManager
19+
1820
@pytest.mark.asyncio
1921
async def test_datasette_debug_asgi():
2022
ds = Datasette([], memory=True)

0 commit comments

Comments
 (0)