Skip to content

Commit

Permalink
clean up test
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelizimm committed Mar 25, 2024
1 parent b3bcf04 commit 58bb87a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions vetiver/tests/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,16 +114,9 @@ def test_complex_prototype(complex_prototype_model):
vetiver_create_prototype(response.json())


@pytest.mark.parametrize(
"data",
[
[{"B": 43, "C": 43}],
# [{"B": 43, "C": 43, "D": 43, "E": 43}], # should this error?
],
)
def test_predict_wrong_input(data, client):
def test_predict_wrong_input(client):
with pytest.raises(TypeError):
predict(endpoint="/predict/", data=data, test_client=client)
predict(endpoint="/predict/", data=[{"B": 43, "C": 43}], test_client=client)


def test_vetiver_endpoint():
Expand Down

0 comments on commit 58bb87a

Please sign in to comment.