Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_normal_init_oauth_still_works (0.17 seconds)

  1. tests/test_swagger_ui_escape.py

            swagger_ui_parameters={"customKey": "<img src=x onerror=alert(1)>"},
        )
        body = html.body.decode()
        assert "<img src=x onerror=alert(1)>" not in body
        assert "\\u003cimg" in body
    
    
    def test_normal_init_oauth_still_works():
        html = get_swagger_ui_html(
            openapi_url="/openapi.json",
            title="Test",
            init_oauth={"clientId": "my-client", "appName": "My App"},
        )
        body = html.body.decode()
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 24 09:28:10 GMT 2026
    - 1.1K bytes
    - Click Count (0)
Back to Top