summaryrefslogtreecommitdiffstats
path: root/ipatests/test_integration
diff options
context:
space:
mode:
authorPetr Viktorin <pviktori@redhat.com>2013-09-24 13:56:21 +0200
committerPetr Viktorin <pviktori@redhat.com>2013-10-03 19:50:35 +0200
commitf2e8624e767efcbf345a740b191f93a239685442 (patch)
tree2a66b429568e931afe019ea7eaad4430bdd9af68 /ipatests/test_integration
parent0ad339a73134d08aebe9a6f72b001816bdcb9c1d (diff)
downloadfreeipa-f2e8624e767efcbf345a740b191f93a239685442.tar.gz
freeipa-f2e8624e767efcbf345a740b191f93a239685442.tar.xz
freeipa-f2e8624e767efcbf345a740b191f93a239685442.zip
ipatests.beakerlib_plugin: Add argument of generated tests to test captions
To differentiate between individual tests in BeakerLib output, the argument needs to be added to the test name. Since Nose doesn't provide a way to get the argument in a plugin, a `test_argument` attribute must be added to the test function to support this, simlarly to how `description` is used to set individual "docstrings". Add test_argument to the generated tests in the CA-less suite.
Diffstat (limited to 'ipatests/test_integration')
-rw-r--r--ipatests/test_integration/test_caless.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py
index 452ea9e2e..a326e1eba 100644
--- a/ipatests/test_integration/test_caless.py
+++ b/ipatests/test_integration/test_caless.py
@@ -1092,6 +1092,7 @@ class TestIPACommands(CALessBase):
'cert-status'):
func = lambda: self.check_ipa_command_not_available(cmd)
func.description = 'Verify that %s command is not available' % cmd
+ func.test_argument = cmd
yield (func, )
def test_cert_help_unavailable(self):