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

More testing and deployment commands

All testing and deployment commands · Flask 3 cheatsheet

Was this page helpful?