From fb2f8639c3d8d5e471a66e9d8ef5d7d4f16bf86f Mon Sep 17 00:00:00 2001 From: Sanne Raymaekers Date: Mon, 21 Oct 2024 11:34:58 +0200 Subject: [PATCH] test: fix unit tests Koji complains if the `repo` isn't present. --- test/unit/test_builder.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/unit/test_builder.py b/test/unit/test_builder.py index 381c31e..5a0060e 100644 --- a/test/unit/test_builder.py +++ b/test/unit/test_builder.py @@ -595,7 +595,7 @@ def test_unknown_build_target(self): ["image_type"], "target", ["arches"], - {}] + {"repo": ["https://1.repo"]}] with self.assertRaises(koji.BuildError): handler.handler(*args) @@ -631,7 +631,7 @@ def test_unsupported_architecture(self): ["image_type"], "fedora-candidate", ["s390x"], - {}] + {"repo": ["https://1.repo"]}] with self.assertRaises(koji.BuildError) as err: handler.handler(*args) @@ -647,7 +647,7 @@ def test_bad_request(self): "image_type", "fedora-candidate", ["x86_64"], - {}] + {"repo": ["https://1.repo"]}] url = self.plugin.DEFAULT_COMPOSER_URL composer = MockComposer(url, architectures=["s390x"]) @@ -716,7 +716,7 @@ def test_compose_failure(self): "image_type", "fedora-candidate", ["x86_64"], - {}] + {"repo": ["https://1.repo"]}] url = self.plugin.DEFAULT_COMPOSER_URL composer = MockComposer(url, architectures=["x86_64"]) @@ -748,7 +748,7 @@ def test_compose_no_logs(self): "image_type", "fedora-candidate", composer.architectures, - {}] + {"repo": ["https://1.repo"]}] composer.routes["logs"] = { "status": 500 @@ -776,7 +776,7 @@ def test_compose_no_manifest(self): "image_type", "fedora-candidate", composer.architectures, - {}] + {"repo": ["https://1.repo"]}] composer.routes["manifests"] = { "status": 500 @@ -892,7 +892,7 @@ def test_oauth2_fail_auth(self): "image_type", "fedora-candidate", ["x86_64"], - {}] + {"repo": ["https://1.repo"]}] with self.assertRaises(koji.GenericError): handler.handler(*args)