We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a41795b commit 6cff19cCopy full SHA for 6cff19c
1 file changed
infrahub_sdk/pytest_plugin/loader.py
@@ -37,7 +37,7 @@
37
"PythonTransform": "get_python_transform",
38
}
39
40
-ITEMS_MAPPING = {
+ITEMS_MAPPING: dict[str, type[InfrahubItem]] = {
41
"check-smoke": InfrahubCheckSmokeItem,
42
"check-unit-process": InfrahubCheckUnitProcessItem,
43
"check-integration": InfrahubCheckIntegrationItem,
@@ -71,7 +71,7 @@ def collect_group(self, group: InfrahubTestGroup) -> Iterable[pytest.Item]:
71
resource_config = self.get_resource_config(group)
72
73
for test in group.tests:
74
- item_class: type[pytest.Item] = ITEMS_MAPPING[test.spec.kind] # type: ignore[assignment]
+ item_class = ITEMS_MAPPING[test.spec.kind]
75
item: InfrahubItem = item_class.from_parent(
76
name=f"{marker.markname}__{group.resource_name}__{test.name}",
77
parent=self,
0 commit comments