Skip to content

Commit

Permalink
test(parse_query_string): resurrect some older tests for csv=True
Browse files Browse the repository at this point in the history
  • Loading branch information
vytas7 committed Dec 16, 2023
1 parent de263fc commit 145e206
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -386,12 +386,21 @@ def test_parse_query_string(self):
assert result['f'] == ['a', 'a=b']
assert result['é'] == 'a=b'

result = uri.parse_query_string(query_string, True)
result = uri.parse_query_string(query_string, True, True)
assert result['a'] == decoded_url
assert result['b'] == decoded_json
assert result['c'] == '1,2,3'
assert result['c'] == ['1', '2', '3']
assert result['d'] == 'test'
assert result['e'] == 'a,,&=,'
assert result['e'] == ['a', '', '&=,']
assert result['f'] == ['a', 'a=b']
assert result['é'] == 'a=b'

result = uri.parse_query_string(query_string, csv=True)
assert result['a'] == decoded_url
assert result['b'] == decoded_json
assert result['c'] == ['1', '2', '3']
assert result['d'] == 'test'
assert result['e'] == ['a', '&=,']
assert result['f'] == ['a', 'a=b']
assert result['é'] == 'a=b'

Expand Down

0 comments on commit 145e206

Please sign in to comment.