forked from orbit-oss/flask
Use content_type kwarg instead of manipulating headers
This commit is contained in:
parent
c4139e0e5d
commit
6c5ef2bc5c
2 changed files with 4 additions and 5 deletions
|
|
@ -215,6 +215,7 @@ def test_json_request():
|
|||
json_data = {'drink': {'gin': 1, 'tonic': True}, 'price': 10}
|
||||
rv = c.post('/api', json=json_data)
|
||||
assert rv.status_code == 200
|
||||
assert flask.request.is_json
|
||||
assert flask.request.get_json() == json_data
|
||||
|
||||
def test_subdomain():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue