diff options
| author | Max Wittig <max.wittig@siemens.com> | 2021-04-20 09:09:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-20 09:09:33 +0200 |
| commit | dd236a09c6a3e01a11410791210a95dd6cee9b5a (patch) | |
| tree | d6956947daab90cb8173ba56421ff2a5986a5d13 /gitlab/tests | |
| parent | 5b18d20f2f2bb71606892616f6c98ddc9d2ab836 (diff) | |
| parent | 443b93482e29fecc12fdbd2329427b37b05ba425 (diff) | |
| download | gitlab-dd236a09c6a3e01a11410791210a95dd6cee9b5a.tar.gz | |
Merge pull request #1400 from JohnVillalovos/jlvillal/sanitize
chore: remove unused function sanitize_parameters()
Diffstat (limited to 'gitlab/tests')
| -rw-r--r-- | gitlab/tests/test_utils.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/gitlab/tests/test_utils.py b/gitlab/tests/test_utils.py index 5a8148c..dbe0838 100644 --- a/gitlab/tests/test_utils.py +++ b/gitlab/tests/test_utils.py @@ -40,23 +40,3 @@ def test_sanitized_url(): src = "http://localhost/foo.bar.baz" dest = "http://localhost/foo%2Ebar%2Ebaz" assert dest == utils.sanitized_url(src) - - -def test_sanitize_parameters_does_nothing(): - assert 1 == utils.sanitize_parameters(1) - assert 1.5 == utils.sanitize_parameters(1.5) - assert "foo" == utils.sanitize_parameters("foo") - - -def test_sanitize_parameters_slash(): - assert "foo%2Fbar" == utils.sanitize_parameters("foo/bar") - - -def test_sanitize_parameters_slash_and_percent(): - assert "foo%2Fbar%25quuz" == utils.sanitize_parameters("foo/bar%quuz") - - -def test_sanitize_parameters_dict(): - source = {"url": "foo/bar", "id": 1} - expected = {"url": "foo%2Fbar", "id": 1} - assert expected == utils.sanitize_parameters(source) |
