Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Update test_distro_mapping.py - Fix CircleCI lint errors
Browse files Browse the repository at this point in the history
* Update test_distro_mapping.py
* Update test_namespaces.py

fix pythong lint

Signed-off-by: Bala Raman <srbala@gmail.com>
  • Loading branch information
srbala committed Dec 12, 2021
1 parent d43cb24 commit 4ebc0ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def test_distro_from(anchore_db):
logger.info("Distros for rocky 8 (rhel) = {}".format(distros))
assert distros is not None
assert len(distros) == 1

distros = DistroMapping.distros_for("almalinux", "8", "rhel")
logger.info("Distros for almalinux 8 (rhel) = {}".format(distros))
assert distros is not None
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/services/policy_engine/test_namespaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_distromappings(initialized_mappings):
almalinux7 = DistroNamespace(name="almalinux", version="7", like_distro="rhel")
assert almalinux7.mapped_names() == []
assert almalinux7.like_namespace_names == ["rhel:7"]

assert sorted(DistroMapping.distros_mapped_to("rhel", "7")) == sorted(
[
DistroTuple("redhat", "7", "RHEL"),
Expand All @@ -266,4 +266,4 @@ def test_mapped_distros(initialized_mappings):
]
assert DistroMapping.distros_for("almalinux", "8", "rhel") == [
DistroTuple("rhel", "8", "RHEL")
]
]

0 comments on commit 4ebc0ed

Please sign in to comment.