diff options
author | John L. Villalovos <john@sodarock.com> | 2022-07-28 21:39:22 -0700 |
---|---|---|
committer | John L. Villalovos <john@sodarock.com> | 2022-07-28 21:39:22 -0700 |
commit | 76ec4b481fa931ea36a195ac474812c11babef7b (patch) | |
tree | 23ddb54416eea1971f5b7aaa6fc3e71e941d503b /tests/unit/test_cli.py | |
parent | 8ba97aa459420ec5ae824d9299d6564656841559 (diff) | |
download | gitlab-76ec4b481fa931ea36a195ac474812c11babef7b.tar.gz |
chore: enable mypy check `warn_return_any`
Update code so that the `warn_return_any` check passes.
Diffstat (limited to 'tests/unit/test_cli.py')
-rw-r--r-- | tests/unit/test_cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unit/test_cli.py b/tests/unit/test_cli.py index ef33b5d..30693d9 100644 --- a/tests/unit/test_cli.py +++ b/tests/unit/test_cli.py @@ -24,6 +24,7 @@ from contextlib import redirect_stderr # noqa: H302 import pytest +import gitlab.base from gitlab import cli from gitlab.exceptions import GitlabError @@ -43,7 +44,7 @@ def test_gitlab_resource_to_cls(gitlab_resource, expected_class): def _namespace(): pass - ExpectedClass = type(expected_class, (), {}) + ExpectedClass = type(expected_class, (gitlab.base.RESTObject,), {}) _namespace.__dict__[expected_class] = ExpectedClass assert cli.gitlab_resource_to_cls(gitlab_resource, _namespace) == ExpectedClass |