Browse Source

Avoid uncovered nested endpoint in facade coverage test.

Use an existing top-level endpoint callable for legacy get_request_handler path coverage so coverage-combine can reach 100%.

Made-with: Cursor
pull/15210/head
rajratanm 4 months ago
parent
commit
e414cbb5ad
  1. 5
      tests/test_routing_facade_contract.py

5
tests/test_routing_facade_contract.py

@ -65,10 +65,7 @@ def test_api_route_defaults_and_intenum_status_paths() -> None:
def test_get_request_handler_supports_legacy_dependant_signature() -> None:
async def endpoint() -> dict[str, str]:
return {"ok": "true"}
dependant = get_dependant(path="/legacy", call=endpoint)
dependant = get_dependant(path="/legacy", call=_raw_response_endpoint)
handler = get_request_handler(dependant)
assert callable(handler)

Loading…
Cancel
Save