Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. tests/test_tutorial/test_custom_response/test_tutorial006b.py

    from fastapi.testclient import TestClient
    
    from docs_src.custom_response.tutorial006b import app
    
    client = TestClient(app)
    
    
    def test_redirect_response_class():
        response = client.get("/fastapi", follow_redirects=False)
        assert response.status_code == 307
        assert response.headers["location"] == "https://fastapi.tiangolo.com"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 899 bytes
    - Viewed (0)
Back to top