]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
tests: add missing asserts
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Wed, 24 May 2023 15:11:38 +0000 (17:11 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 1 Jun 2023 10:45:12 +0000 (12:45 +0200)
tests/test_parse_load_args.py

index a532073d966642cb6e70ee7347f7abd5bb701c3f..3d5ec0b55c2228e283f2b8b29bdcad3965e43aba 100644 (file)
@@ -137,6 +137,8 @@ def test_match_distribution(dist1: Distribution, dist2: Distribution) -> None:
         assert "testpkg1" in conf.packages
         if dist1 == dist2:
             assert "testpkg2" in conf.packages
+        else:
+            assert "testpkg2" not in conf.packages
         assert "testpkg3" in conf.packages
 
 
@@ -199,6 +201,8 @@ def test_match_release(release1: int, release2: int) -> None:
         assert "testpkg1" in conf.packages
         if release1 == release2:
             assert "testpkg2" in conf.packages
+        else:
+            assert "testpkg2" not in conf.packages
         assert "testpkg3" in conf.packages
 
 
@@ -275,6 +279,8 @@ def test_match_imageid(image1: str, image2: str) -> None:
         assert "testpkg1" in conf.packages
         if image1 == image2:
             assert "testpkg2" in conf.packages
+        else:
+            assert "testpkg2" not in conf.packages
         assert "testpkg3" in conf.packages
         assert "testpkg4" in conf.packages