test_strings_in_generated_redoc() — fastapi Function Reference
Architecture documentation for the test_strings_in_generated_redoc() function in test_local_docs.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD a325402a_cab4_5fb2_49f0_ba2284d822c4["test_strings_in_generated_redoc()"] 62047866_e337_3c14_2193_c01cbd5b91aa["test_local_docs.py"] a325402a_cab4_5fb2_49f0_ba2284d822c4 -->|defined in| 62047866_e337_3c14_2193_c01cbd5b91aa 609573dc_dd8d_bd61_f42b_83a7d4873d61["get_redoc_html()"] a325402a_cab4_5fb2_49f0_ba2284d822c4 -->|calls| 609573dc_dd8d_bd61_f42b_83a7d4873d61 style a325402a_cab4_5fb2_49f0_ba2284d822c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_local_docs.py lines 35–42
def test_strings_in_generated_redoc():
sig = inspect.signature(get_redoc_html)
redoc_js_url = sig.parameters.get("redoc_js_url").default # type: ignore
redoc_favicon_url = sig.parameters.get("redoc_favicon_url").default # type: ignore
html = get_redoc_html(openapi_url="/docs", title="title")
body_content = html.body.decode()
assert redoc_js_url in body_content
assert redoc_favicon_url in body_content
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_strings_in_generated_redoc() do?
test_strings_in_generated_redoc() is a function in the fastapi codebase, defined in tests/test_local_docs.py.
Where is test_strings_in_generated_redoc() defined?
test_strings_in_generated_redoc() is defined in tests/test_local_docs.py at line 35.
What does test_strings_in_generated_redoc() call?
test_strings_in_generated_redoc() calls 1 function(s): get_redoc_html.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free