mirror of
https://github.com/LukeHagar/connexion.git
synced 2025-12-07 20:37:44 +00:00
15 lines
466 B
Python
15 lines
466 B
Python
import json
|
|
|
|
|
|
def test_app(unordered_definition_app):
|
|
app_client = unordered_definition_app.app.test_client()
|
|
response = app_client.get(
|
|
"/v1.0/unordered-params/1?first=first&second=2"
|
|
) # type: flask.Response
|
|
assert response.status_code == 400
|
|
response_data = json.loads(response.data.decode("utf-8", "replace"))
|
|
assert (
|
|
response_data["detail"]
|
|
== "Wrong type, expected 'integer' for query parameter 'first'"
|
|
)
|