diff options
| author | John L. Villalovos <john@sodarock.com> | 2022-01-13 11:17:40 -0800 |
|---|---|---|
| committer | John L. Villalovos <john@sodarock.com> | 2022-01-13 11:17:40 -0800 |
| commit | b07eece0a35dbc48076c9ec79f65f1e3fa17a872 (patch) | |
| tree | 7a3109087cee26308c4359d4cdcdada8999d5b22 /tests/functional | |
| parent | a2e7c383e10509b6eb0fa8760727036feb0807c8 (diff) | |
| download | gitlab-b07eece0a35dbc48076c9ec79f65f1e3fa17a872.tar.gz | |
chore: replace usage of utils._url_encode() with utils.EncodedId()jlvillal/encoded_id
utils.EncodedId() has basically the same functionalityy of using
utils._url_encode(). So remove utils._url_encode() as we don't need
it.
Diffstat (limited to 'tests/functional')
| -rw-r--r-- | tests/functional/api/test_lazy_objects.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/functional/api/test_lazy_objects.py b/tests/functional/api/test_lazy_objects.py index 3db7a60..78ade80 100644 --- a/tests/functional/api/test_lazy_objects.py +++ b/tests/functional/api/test_lazy_objects.py @@ -12,7 +12,7 @@ def lazy_project(gl, project): def test_lazy_id(project, lazy_project): assert isinstance(lazy_project.id, str) assert isinstance(lazy_project.id, gitlab.utils.EncodedId) - assert lazy_project.id == gitlab.utils._url_encode(project.path_with_namespace) + assert lazy_project.id == gitlab.utils.EncodedId(project.path_with_namespace) def test_refresh_after_lazy_get_with_path(project, lazy_project): |
