summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNejc Habjan <nejc.habjan@siemens.com>2022-07-29 10:36:00 +0200
committerGitHub <noreply@github.com>2022-07-29 10:36:00 +0200
commitb8be32ae17fb59c5df080a9f7948fdff34b7d421 (patch)
tree9bbea7b42be567178e2251939f5efe5069abfce5 /tests
parent1b7cd31dc9a4a15623ac168eaa355422634e2876 (diff)
parent76ec4b481fa931ea36a195ac474812c11babef7b (diff)
downloadgitlab-b8be32ae17fb59c5df080a9f7948fdff34b7d421.tar.gz
Merge pull request #2157 from python-gitlab/jlvillal/mypy_step_by_step
chore: enable mypy check `warn_return_any`
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/objects/test_projects.py2
-rw-r--r--tests/unit/test_cli.py3
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/unit/objects/test_projects.py b/tests/unit/objects/test_projects.py
index 6134382..1e5e7d1 100644
--- a/tests/unit/objects/test_projects.py
+++ b/tests/unit/objects/test_projects.py
@@ -431,7 +431,7 @@ def resp_start_housekeeping():
rsps.add(
method=responses.POST,
url="http://localhost/api/v4/projects/1/housekeeping",
- json="0ee4c430667fb7be8461f310",
+ json={},
content_type="application/json",
status=201,
)
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