Skip to content

Commit

Permalink
test: fix unit tests
Browse files Browse the repository at this point in the history
Koji complains if the `repo` isn't present.
  • Loading branch information
croissanne committed Oct 21, 2024
1 parent 7ec9a91 commit fb2f863
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/unit/test_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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"])
Expand Down Expand Up @@ -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"])
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit fb2f863

Please sign in to comment.