assert config.environment.get("ABC") is None
-@pytest.mark.parametrize("dist1,dist2", itertools.combinations_with_replacement(Distribution, 2))
+@pytest.mark.parametrize(
+ "dist1,dist2",
+ itertools.combinations_with_replacement([Distribution.debian, Distribution.opensuse], 2),
+)
def test_match_distribution(tmp_path: Path, dist1: Distribution, dist2: Distribution) -> None:
with chdir(tmp_path):
parent = Path("mkosi.conf")
assert "testpkg3" in conf.packages
-@pytest.mark.parametrize("release1,release2", itertools.combinations_with_replacement([36, 37, 38], 2))
+@pytest.mark.parametrize("release1,release2", itertools.combinations_with_replacement([36, 37], 2))
def test_match_release(tmp_path: Path, release1: int, release2: int) -> None:
with chdir(tmp_path):
parent = Path("mkosi.conf")
assert config.output == "qed"
-@pytest.mark.parametrize(
- "image1,image2", itertools.combinations_with_replacement(["image_a", "image_b", "image_c"], 2)
-)
+@pytest.mark.parametrize("image1,image2", itertools.combinations_with_replacement(["image_a", "image_b"], 2))
def test_match_imageid(tmp_path: Path, image1: str, image2: str) -> None:
with chdir(tmp_path):
parent = Path("mkosi.conf")
"op,version",
itertools.product(
["", "==", "<", ">", "<=", ">="],
- [122, 123, 124],
+ [122, 123],
),
)
def test_match_imageversion(tmp_path: Path, op: str, version: str) -> None: