(scope: Scope, receive: Receive, send: Send)
| 634 | ) |
| 635 | |
| 636 | async def no_state_wrapper(scope: Scope, receive: Receive, send: Send) -> None: |
| 637 | del scope["state"] |
| 638 | await app(scope, receive, send) |
| 639 | |
| 640 | with pytest.raises(RuntimeError, match='The server does not support "state" in the lifespan scope'): |
| 641 | with test_client_factory(no_state_wrapper): |