MCPcopy Create free account
hub / github.com/pallets/quart / _app

Function _app

tests/test_sync.py:14–30  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13@pytest.fixture(name="app")
14def _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
33async def test_sync_request_context(app: Quart) -> None:

Callers

nothing calls this directly

Calls 1

QuartClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…