Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for unfollow (0.15 sec)

  1. tests/test_tutorial/test_custom_response/test_tutorial006c.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_response.tutorial006c import app
    
    client = TestClient(app)
    
    
    def test_redirect_status_code():
        response = client.get("/pydantic", follow_redirects=False)
        assert response.status_code == 302
        assert response.headers["location"] == "https://docs.pydantic.dev/"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Mar 22 01:42:11 GMT 2024
    - 899 bytes
    - Viewed (0)
Back to top