Skip to content

Commit

Permalink
TEST: Updated a test case to reflect an update with HTTP errors fix
Browse files Browse the repository at this point in the history
Signed-off-by: Andrei Batomunkuev <abatomunkuev@myseneca.ca>
  • Loading branch information
abatomunkuev committed Nov 7, 2021
1 parent 468f390 commit 6c4cedf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/models/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ def _validate_with_rest_endpoint(scoring_proc, host_port, df, x, sk_model):
# Try examples of bad input, verify we get a non-200 status code
for content_type in [CONTENT_TYPE_JSON_SPLIT_ORIENTED, CONTENT_TYPE_CSV, CONTENT_TYPE_JSON]:
scoring_response = endpoint.invoke(data="", content_type=content_type)
assert scoring_response.status_code == 500, (
"Expected server failure with error code 500, got response with status code %s "
assert scoring_response.status_code == 400, (
"Expected server failure with error code 400, got response with status code %s "
"and body %s" % (scoring_response.status_code, scoring_response.text)
)
scoring_response_dict = json.loads(scoring_response.content)
Expand Down

0 comments on commit 6c4cedf

Please sign in to comment.