MCPcopy Index your code
hub / github.com/fastapi/fastapi / test_strings_in_generated_redoc

Function test_strings_in_generated_redoc

tests/test_local_docs.py:35–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33
34
35def test_strings_in_generated_redoc():
36 sig = inspect.signature(get_redoc_html)
37 redoc_js_url = sig.parameters.get("redoc_js_url").default # type: ignore
38 redoc_favicon_url = sig.parameters.get("redoc_favicon_url").default # type: ignore
39 html = get_redoc_html(openapi_url="/docs", title="title")
40 body_content = bytes(html.body).decode()
41 assert redoc_js_url in body_content
42 assert redoc_favicon_url in body_content
43
44
45def test_strings_in_custom_redoc():

Callers

nothing calls this directly

Calls 2

get_redoc_htmlFunction · 0.90
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…