MCPcopy
hub / github.com/fastapi/fastapi / test_schema

Function test_schema

tests/test_request_params/test_path/test_required_str.py:56–66  ·  view source on GitHub ↗
(path: str, expected_name: str, expected_title: str)

Source from the content-addressed store, hash-verified

54 ],
55)
56def test_schema(path: str, expected_name: str, expected_title: str):
57 assert app.openapi()["paths"][path]["get"]["parameters"] == snapshot(
58 [
59 {
60 "required": True,
61 "schema": {"title": Is(expected_title), "type": "string"},
62 "name": Is(expected_name),
63 "in": "path",
64 }
65 ]
66 )
67
68
69@pytest.mark.parametrize(

Callers

nothing calls this directly

Calls 1

openapiMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…