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

Function test_empty_path_with_url_prefix

tests/test_blueprints.py:74–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72
73
74async def test_empty_path_with_url_prefix() -> None:
75 app = Quart(__name__)
76 prefix = Blueprint("prefix", __name__, url_prefix="/prefix")
77
78 @prefix.route("")
79 async def empty_path_route() -> ResponseReturnValue:
80 return "OK"
81
82 app.register_blueprint(prefix)
83
84 test_client = app.test_client()
85 response = await test_client.get("/prefix")
86 assert response.status_code == 200
87 assert await response.get_data() == b"OK"
88
89
90async def test_blueprint_template_filter() -> None:

Callers

nothing calls this directly

Calls 5

test_clientMethod · 0.95
QuartClass · 0.90
BlueprintClass · 0.90
getMethod · 0.45
get_dataMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…