From: Joerg Behrmann Date: Wed, 24 May 2023 15:11:38 +0000 (+0200) Subject: tests: add missing asserts X-Git-Tag: v15~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ab5981f83e053d2fe15ec7e49929abbd5f945ce;p=thirdparty%2Fmkosi.git tests: add missing asserts --- diff --git a/tests/test_parse_load_args.py b/tests/test_parse_load_args.py index a532073d9..3d5ec0b55 100644 --- a/tests/test_parse_load_args.py +++ b/tests/test_parse_load_args.py @@ -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