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:
parent
58f6a60e15
commit
180cdefbad
1 changed files with 3 additions and 1 deletions
|
|
@ -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"]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue