Skip to content

Commit

Permalink
fix sklearn tests with the correct model_dir (kubeflow#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcli authored and k8s-ci-robot committed May 17, 2019
1 parent 667bcef commit bb29265
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/sklearnserver/sklearnserver/test_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import joblib
import os

model_dir = "/path/to/kfserving/docs/samples/sklearn"
model_dir = "../../docs/samples/sklearn"
JOBLIB_FILE = "model.joblib"

def test_model():
Expand All @@ -18,4 +18,4 @@ def test_model():
server.load()
request = X[0:1].tolist()
response = server.predict(request)
assert response == [0]
assert response == [0]

0 comments on commit bb29265

Please sign in to comment.