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.
This commit is contained in:
parent
1d9612ca05
commit
9ad7faf298
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue