Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_get_api_route_not_decorated (0.27 sec)

  1. tests/test_extra_routes.py

    client = TestClient(app)
    
    
    def test_get_api_route():
        response = client.get("/items/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": "foo"}
    
    
    def test_get_api_route_not_decorated():
        response = client.get("/items-not-decorated/foo")
        assert response.status_code == 200, response.text
        assert response.json() == {"item_id": "foo"}
    
    
    def test_delete():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 13.7K bytes
    - Viewed (0)
Back to top