Skip to content

Commit

Permalink
update tests to expect Swagger2URIParser
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Grossmann-Kavanagh committed Jul 30, 2018
1 parent b5d4ff4 commit 02c03d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/api/test_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ def test_array_query_param(simple_app):
url = '/v1.0/test_array_csv_query_param?items=A&items=B&items=C&items=D,E,F'
response = app_client.get(url, headers=headers)
array_response = json.loads(response.data.decode('utf-8', 'replace')) # type: [str] multi array with csv format
assert array_response == ['A', 'B', 'C', 'D', 'E', 'F']
assert array_response == ['D', 'E', 'F']
url = '/v1.0/test_array_pipes_query_param?items=4&items=5&items=6&items=7|8|9'
response = app_client.get(url, headers=headers)
array_response = json.loads(response.data.decode('utf-8', 'replace')) # type: [int] multi array with pipes format
assert array_response == [4, 5, 6, 7, 8, 9]
assert array_response == [7, 8, 9]


def test_extra_query_param(simple_app):
Expand Down

0 comments on commit 02c03d0

Please sign in to comment.