diff options
author | John L. Villalovos <john@sodarock.com> | 2021-04-18 14:55:37 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2021-04-18 14:55:37 -0700 |
commit | 443b93482e29fecc12fdbd2329427b37b05ba425 (patch) | |
tree | b5f005231612cb9c5a8886bfac88c2fdd3346bb2 /gitlab/tests/test_utils.py | |
parent | 916a7fe4661b3822a0a93fc75fb72d80f550582d (diff) | |
download | gitlab-443b93482e29fecc12fdbd2329427b37b05ba425.tar.gz |
chore: remove unused function sanitize_parameters()
The function sanitize_parameters() was used when the v3 API was in
use. Since v3 API support has been removed there are no more users of
this function.
Diffstat (limited to 'gitlab/tests/test_utils.py')
-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) |