Flask 3 · Testing and deployment
Test with the test client
Call routes without running a server.
def test_index(client):
response = client.get("/")
assert response.status_code == 200
Official Flask 3 documentation
Flask 3 · Testing and deployment
Call routes without running a server.
def test_index(client):
response = client.get("/")
assert response.status_code == 200
Official Flask 3 documentation
Was this page helpful?