test/cli: check for release command line arg

Check that specifying `--release` results in the corresponding
entry (`release`) in the options dictionary (`opts`).
This commit is contained in:
Christian Kellner 2020-11-03 19:39:34 +01:00
parent 58f6a60e15
commit 180cdefbad

View file

@ -82,7 +82,8 @@ class TestCliPlugin(PluginTest):
"name", "version", "distro", "target", "arch1",
# optional keyword arguments
"--repo", "https://first.repo",
"--repo", "https://second.repo"
"--repo", "https://second.repo",
"--release", "20200202.n2"
]
expected_args = ["name", "version", "distro",
@ -91,6 +92,7 @@ class TestCliPlugin(PluginTest):
['arch1']]
expected_opts = {
"release": "20200202.n2",
"repo": ["https://first.repo", "https://second.repo"]
}