diff --git a/pungi/checks.py b/pungi/checks.py index abdbf46c..88692dd6 100644 --- a/pungi/checks.py +++ b/pungi/checks.py @@ -572,7 +572,6 @@ def make_schema(): }, "required": ["kickstart"], "additionalProperties": False, - "type": "object", }, "osbs_config": { "type": "object", diff --git a/pungi/phases/pkgset/pkgsets.py b/pungi/phases/pkgset/pkgsets.py index 2d5ab3ea..3cc68f25 100644 --- a/pungi/phases/pkgset/pkgsets.py +++ b/pungi/phases/pkgset/pkgsets.py @@ -614,7 +614,7 @@ class KojiPackageSet(PackageSetBase): result_srpms = [] include_packages = set(include_packages or []) - if type(event) is dict: + if isinstance(event, dict): event = event["id"] msg = "Getting latest RPMs (tag: %s, event: %s, inherit: %s)" % ( diff --git a/tests/test_pkgset_source_koji.py b/tests/test_pkgset_source_koji.py index 6141652c..26c12854 100644 --- a/tests/test_pkgset_source_koji.py +++ b/tests/test_pkgset_source_koji.py @@ -238,10 +238,10 @@ class TestGetPackageSetFromKoji(helpers.PungiTestCase): self.compose, self.koji_wrapper, event, module_info_str ) - assert type(result) is list + assert isinstance(result, list) assert len(result) == 1 module = result[0] - assert type(module) is dict + assert isinstance(module, dict) self.assertIn("module_stream", module) self.assertIn("module_version", module) self.assertIn("module_context", module) @@ -367,11 +367,11 @@ class TestGetPackageSetFromKoji(helpers.PungiTestCase): self.compose, self.koji_wrapper, event, module_info_str ) - assert type(result) is list + assert isinstance(result, list) assert len(result) == 2 module = result[0] for module in result: - assert type(module) is dict + assert isinstance(module, dict) self.assertIn("module_stream", module) self.assertIn("module_version", module) self.assertIn("module_context", module)