From 180cdefbadba643ce2a502328fcfc0869444bda6 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Tue, 3 Nov 2020 19:39:34 +0100 Subject: [PATCH] test/cli: check for release command line arg Check that specifying `--release` results in the corresponding entry (`release`) in the options dictionary (`opts`). --- test/unit/test_cli.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/test_cli.py b/test/unit/test_cli.py index 6514b1b..368438c 100644 --- a/test/unit/test_cli.py +++ b/test/unit/test_cli.py @@ -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"] }