Skip to content

Commit 849b999

Browse files
author
Dan
authored
test content type header (#12)
1 parent b71d8fc commit 849b999

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/integration/local/test_default_model_fn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ def test_default_model_fn(predictor):
4848
assert [[4.9999918937683105]] == output
4949

5050

51-
def test_default_model_fn_via_requests(predictor):
51+
def test_default_model_fn_content_type(predictor):
5252
r = requests.post('http://localhost:8080/invocations', json=[[1, 2]])
53+
assert 'application/json' == r.headers['Content-Type']
5354
assert [[4.9999918937683105]] == r.json()

0 commit comments

Comments
 (0)