()
| 12 | |
| 13 | @pytest.fixture(name="app") |
| 14 | def _app() -> Quart: |
| 15 | app = Quart(__name__) |
| 16 | |
| 17 | @app.route("/", methods=["GET", "POST"]) |
| 18 | def index() -> ResponseReturnValue: |
| 19 | return request.method |
| 20 | |
| 21 | @app.route("/gen") |
| 22 | def gen() -> ResponseReturnValue: |
| 23 | def _gen() -> Generator[bytes, None, None]: |
| 24 | yield b"%d" % threading.current_thread().ident |
| 25 | for _ in range(2): |
| 26 | yield b"b" |
| 27 | |
| 28 | return _gen(), 200 |
| 29 | |
| 30 | return app |
| 31 | |
| 32 | |
| 33 | async def test_sync_request_context(app: Quart) -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…