Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Gridin (0.19 sec)

  1. tests/test_custom_swagger_ui_redirect.py

        assert response.headers["content-type"] == "text/html; charset=utf-8"
        assert "swagger-ui-dist" in response.text
        print(client.base_url)
        assert (
            f"oauth2RedirectUrl: window.location.origin + '{swagger_ui_oauth2_redirect_url}'"
            in response.text
        )
    
    
    def test_swagger_ui_oauth2_redirect():
        response = client.get(swagger_ui_oauth2_redirect_url)
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 1.1K bytes
    - Viewed (0)
  2. tests/test_tutorial/test_cors/test_tutorial001.py

        headers = {
            "Origin": "https://localhost.tiangolo.com",
            "Access-Control-Request-Method": "GET",
            "Access-Control-Request-Headers": "X-Example",
        }
        response = client.options("/", headers=headers)
        assert response.status_code == 200, response.text
        assert response.text == "OK"
        assert (
            response.headers["access-control-allow-origin"]
            == "https://localhost.tiangolo.com"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 1.2K bytes
    - Viewed (0)
Back to top