Skip to content

Commit

Permalink
test diffrent data for svm
Browse files Browse the repository at this point in the history
  • Loading branch information
ipranjal committed Dec 2, 2023
1 parent bcd7944 commit d22f21e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ def get_processed_data():

def test_predict_svm():
X,y = get_processed_data()
response = app.test_client().post("/predict/svm", json={"image":X[0].tolist()})
response = app.test_client().post("/predict/svm", json={"image":X[3].tolist()})
assert response.status_code == 200
assert response.get_json()['prediction'] == [0]
assert response.get_json()['prediction'] == [3]

def test_predict_tree():
X,y = get_processed_data()
Expand Down

0 comments on commit d22f21e

Please sign in to comment.