test_strings_in_custom_swagger() — fastapi Function Reference
Architecture documentation for the test_strings_in_custom_swagger() function in test_local_docs.py from the fastapi codebase.
Entity Profile
Dependency Diagram
graph TD c0ea3c7e_d0d1_6024_0146_87da461cf4b1["test_strings_in_custom_swagger()"] 62047866_e337_3c14_2193_c01cbd5b91aa["test_local_docs.py"] c0ea3c7e_d0d1_6024_0146_87da461cf4b1 -->|defined in| 62047866_e337_3c14_2193_c01cbd5b91aa 3705e434_dfc7_b070_aae6_93314a9b9976["get_swagger_ui_html()"] c0ea3c7e_d0d1_6024_0146_87da461cf4b1 -->|calls| 3705e434_dfc7_b070_aae6_93314a9b9976 style c0ea3c7e_d0d1_6024_0146_87da461cf4b1 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
tests/test_local_docs.py lines 18–32
def test_strings_in_custom_swagger():
swagger_js_url = "swagger_fake_file.js"
swagger_css_url = "swagger_fake_file.css"
swagger_favicon_url = "swagger_fake_file.png"
html = get_swagger_ui_html(
openapi_url="/docs",
title="title",
swagger_js_url=swagger_js_url,
swagger_css_url=swagger_css_url,
swagger_favicon_url=swagger_favicon_url,
)
body_content = html.body.decode()
assert swagger_js_url in body_content
assert swagger_css_url in body_content
assert swagger_favicon_url in body_content
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_strings_in_custom_swagger() do?
test_strings_in_custom_swagger() is a function in the fastapi codebase, defined in tests/test_local_docs.py.
Where is test_strings_in_custom_swagger() defined?
test_strings_in_custom_swagger() is defined in tests/test_local_docs.py at line 18.
What does test_strings_in_custom_swagger() call?
test_strings_in_custom_swagger() calls 1 function(s): get_swagger_ui_html.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free