()
| 41 | |
| 42 | |
| 43 | def test_lifespan_off(): |
| 44 | async def app(scope, receive, send): |
| 45 | pass # pragma: no cover |
| 46 | |
| 47 | async def test(): |
| 48 | config = Config(app=app, lifespan="off") |
| 49 | lifespan = LifespanOff(config) |
| 50 | |
| 51 | await lifespan.startup() |
| 52 | await lifespan.shutdown() |
| 53 | |
| 54 | loop = asyncio.new_event_loop() |
| 55 | loop.run_until_complete(test()) |
| 56 | loop.close() |
| 57 | |
| 58 | |
| 59 | def test_lifespan_auto(): |