mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-09 20:37:46 +00:00
Create MediaTypeDict class for range matching (#1603)
This commit is contained in:
committed by
Robbe Sneyders
parent
b8bdcc999d
commit
9d7258c25d
@@ -309,3 +309,13 @@ def test_global_response_definitions(schema_app):
|
||||
app_client = schema_app.app.test_client()
|
||||
resp = app_client.get("/v1.0/define_global_response")
|
||||
assert json.loads(resp.data.decode("utf-8", "replace")) == ["general", "list"]
|
||||
|
||||
|
||||
def test_media_range(schema_app):
|
||||
app_client = schema_app.app.test_client()
|
||||
headers = {"Content-type": "application/json"}
|
||||
|
||||
array_request = app_client.post(
|
||||
"/v1.0/media_range", headers=headers, data=json.dumps({})
|
||||
)
|
||||
assert array_request.status_code == 200, array_request.text
|
||||
|
||||
Reference in New Issue
Block a user