summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/meta/test_ensure_type_hints.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/meta/test_ensure_type_hints.py b/tests/meta/test_ensure_type_hints.py
index 7a351ec..8c1c060 100644
--- a/tests/meta/test_ensure_type_hints.py
+++ b/tests/meta/test_ensure_type_hints.py
@@ -30,7 +30,7 @@ def pytest_generate_tests(metafunc: _pytest.python.Metafunc) -> None:
if module.startswith("gitlab.v4.objects"):
excluded_modules.add(module)
- class_info_list = []
+ class_info_set = set()
for module_name, module_value in inspect.getmembers(gitlab.v4.objects):
if not inspect.ismodule(module_value):
# We only care about the modules
@@ -49,9 +49,10 @@ def pytest_generate_tests(metafunc: _pytest.python.Metafunc) -> None:
if module_name == "gitlab.base":
continue
- class_info_list.append((class_name, class_value))
-
- metafunc.parametrize("class_info", class_info_list)
+ if not class_name.endswith("Manager"):
+ continue
+ class_info_set.add((class_name, class_value))
+ metafunc.parametrize("class_info", class_info_set)
class TestTypeHints: