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

Function test_strings_in_custom_redoc

tests/test_local_docs.py:45–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

43
44
45def test_strings_in_custom_redoc():
46 redoc_js_url = "fake_redoc_file.js"
47 redoc_favicon_url = "fake_redoc_file.png"
48 html = get_redoc_html(
49 openapi_url="/docs",
50 title="title",
51 redoc_js_url=redoc_js_url,
52 redoc_favicon_url=redoc_favicon_url,
53 )
54 body_content = bytes(html.body).decode()
55 assert redoc_js_url in body_content
56 assert redoc_favicon_url in body_content
57
58
59def test_google_fonts_in_generated_redoc():

Callers

nothing calls this directly

Calls 1

get_redoc_htmlFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…