Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for test_read_users (0.05 sec)

  1. tests/test_tutorial/test_path_params/test_tutorial003b.py

    client = TestClient(app)
    
    
    def test_get_users():
        response = client.get("/users")
        assert response.status_code == 200, response.text
        assert response.json() == ["Rick", "Morty"]
    
    
    def test_read_users2():  # Just for coverage
        assert asyncio.run(read_users2()) == ["Bean", "Elfo"]
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 1.3K bytes
    - Viewed (0)
Back to top