aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2016-12-08 19:49:05 +0100
committerGuido Günther <agx@sigxcpu.org>2016-12-08 20:03:19 +0100
commit63009e5cbc62644204e7329471e13c46bb4cbbe1 (patch)
tree803d594c0f2120a2a70dc8e1a2ed7fc5e8955de7 /tests
parent178c4ae00b08762352739e44bddcc8669bffc523 (diff)
gbp config: test rpm commands too
Diffstat (limited to 'tests')
-rw-r--r--tests/19_test_gbp_scripts_config.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/19_test_gbp_scripts_config.py b/tests/19_test_gbp_scripts_config.py
index c0c150bb..9b0d3d53 100644
--- a/tests/19_test_gbp_scripts_config.py
+++ b/tests/19_test_gbp_scripts_config.py
@@ -80,14 +80,18 @@ class TestGbpConfigCommand(unittest.TestCase):
def test_print_cmd_all_values(self):
"""Can we fetch the configuration for all commands"""
for cmd in ['buildpackage',
+ 'buildpackage_rpm',
'clone',
'config',
'create_remote_repo',
'dch',
'import_dsc',
'import_orig',
+ 'import_srpm',
'pq',
- 'pull']:
+ 'pq_rpm',
+ 'pull',
+ 'rpm_ch']:
printstub = self.AllValuesPrintStub(cmd)
ret = gbp.scripts.config.print_cmd_values(cmd, printstub)
self.assertIn('%s.color' % cmd, printstub.result.keys())
@@ -96,7 +100,7 @@ class TestGbpConfigCommand(unittest.TestCase):
def test_nonexistent_cmds(self):
"""Non-existing commands should print no values"""
- for cmd in ["import_dscs", "supercommand"]:
+ for cmd in ["import_dscs", "supercommand", "nonexistent"]:
printstub = self.AllValuesPrintStub(cmd)
ret = gbp.scripts.config.print_cmd_values(cmd, printstub)
self.assertEquals(printstub.result, dict())