File size: 250 Bytes
c2fb337
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
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