Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 1 of 1 for test_no_redirect (0.13 seconds)

  1. tests/test_tutorial/test_behind_a_proxy/test_tutorial001_01.py

    )
    
    
    def test_redirect() -> None:
        response = client.get("/items")
        assert response.status_code == 307
        assert response.headers["location"] == "https://example.com/items/"
    
    
    def test_no_redirect() -> None:
        response = client.get("/items/")
        assert response.status_code == 200
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 20:41:43 GMT 2025
    - 544 bytes
    - Click Count (0)
Back to Top