()
| 43 | |
| 44 | |
| 45 | def 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 | |
| 59 | def test_google_fonts_in_generated_redoc(): |
nothing calls this directly
no test coverage detected
searching dependent graphs…