Skip to content

Commit 396bad7

Browse files
committed
Improved URL encoding.
1 parent e8de57b commit 396bad7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/model/test_resource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_build_base_query():
7171

7272

7373
@pytest.mark.parametrize('params, expected, not_expected', [
74-
({'expression': "X&Y='A''s B'"}, ["?X&Y='A''s%20B'"], []),
74+
({'expression': "X&Y='A''s B'"}, ["?X&Y='A''s B'"], []), # no encoding, this is handled in requests module
7575
({'expression': 'X', 'other': 'O'}, ['?X'], ['other', 'O']),
7676
({'reverse': True}, ['revert=true'], ['reverse']),
7777
({'series': 'A'}, ['series=A'], []),
@@ -93,6 +93,7 @@ def test_build_base_query():
9393
])
9494
def test_prepare_query(params, expected, not_expected):
9595
"""Verify that generic query preparation works as expected."""
96+
# pylint: disable=protected-access
9697
resource = CumulocityResource(Mock(), 'res')
9798
url = resource._prepare_query(**params)
9899
for e in expected:

0 commit comments

Comments
 (0)