From 9ad7faf298c9d13c371f7ee6d656b354606b6cee Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 17 Sep 2020 15:38:31 +0200 Subject: [PATCH] test/hub: check optional arguments Include the release and repo arguments in the basic compose test, so that if their type was to change, we were to catch it here. --- test/unit/test_hub.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/unit/test_hub.py b/test/unit/test_hub.py index 282811f..a297c46 100644 --- a/test/unit/test_hub.py +++ b/test/unit/test_hub.py @@ -42,7 +42,8 @@ class TestHubPlugin(PluginTest): def test_basic(self): context = self.mock_koji_context() - opts = {} + opts = {"repo": ["repo1", "repo2"], + "release": "1.2.3"} args = ["name", "version", "distro", ["image_type"], "target", @@ -56,7 +57,7 @@ class TestHubPlugin(PluginTest): setattr(self.plugin, "context", context) setattr(self.plugin, "kojihub", kojihub) - self.plugin.osbuildImage(*args, opts) + self.plugin.osbuildImage(*args, {}) def test_input_validation(self): context = self.mock_koji_context()