from app import app def test_predict(): client = app.test_client() response = client.post("/predict", json={ "features": [200, 1, 0, 500] }) assert response.status_code == 200 assert "fraud" in response.json