From f2e8624e767efcbf345a740b191f93a239685442 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Tue, 24 Sep 2013 13:56:21 +0200 Subject: 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. --- ipatests/test_integration/test_caless.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ipatests/test_integration/test_caless.py') diff --git a/ipatests/test_integration/test_caless.py b/ipatests/test_integration/test_caless.py index 452ea9e2..a326e1eb 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): -- cgit