|
|
@ -53,6 +53,8 @@ response_not_valid_int = { |
|
|
("/query/param-required/int", 422, response_missing), |
|
|
("/query/param-required/int", 422, response_missing), |
|
|
("/query/param-required/int?query=50", 200, "foo bar 50"), |
|
|
("/query/param-required/int?query=50", 200, "foo bar 50"), |
|
|
("/query/param-required/int?query=foo", 422, response_not_valid_int), |
|
|
("/query/param-required/int?query=foo", 422, response_not_valid_int), |
|
|
|
|
|
("/query/params?first-query=1&second-query=2", 200, "foo bar {'first-query': 1, " |
|
|
|
|
|
"'second-query': 2}") |
|
|
], |
|
|
], |
|
|
) |
|
|
) |
|
|
def test_get_path(path, expected_status, expected_response): |
|
|
def test_get_path(path, expected_status, expected_response): |
|
|
|