diff --git a/tests/manifests/test_pod_containers_ports.py b/tests/manifests/test_pod_containers_ports.py index 27e3a3e6..2033cc8f 100644 --- a/tests/manifests/test_pod_containers_ports.py +++ b/tests/manifests/test_pod_containers_ports.py @@ -15,5 +15,5 @@ async def test_unique_ports_in_containers(templates): id = f"{template['kind']}/{template['metadata']['name']}" ports = [] for container in template["spec"]["template"]["spec"]["containers"]: - ports += [port['containerPort'] for port in container.get('ports', [])] + ports += [port["containerPort"] for port in container.get("ports", [])] assert len(ports) == len(set(ports)), f"Ports are not unique: {id}, {ports}"