Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_get_starlette_item (0.16 sec)

  1. tests/test_starlette_exception.py

        assert response.status_code == 404, response.text
        assert response.headers.get("x-error") == "Some custom header"
        assert response.json() == {"detail": "Item not found"}
    
    
    def test_get_starlette_item():
        response = client.get("/starlette-items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"item": "The Foo Wrestlers"}
    
    
    def test_get_starlette_item_not_found():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jun 30 18:25:16 UTC 2023
    - 7.4K bytes
    - Viewed (0)
Back to top