pulp_2_tests.tests.python.utils¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.python.utils
Utilities for Python tests.
-
pulp_2_tests.tests.python.utils.
set_up_module
()¶ Skip tests if Pulp 2 isn’t under test or if Python isn’t installed.
-
pulp_2_tests.tests.python.utils.
skip_if
(func, var_name, result, *, exc=<class 'unittest.case.SkipTest'>)¶ The
@skip_if
decorator, customized for unittest.pulp_smash.selectors.skip_if
is test runner agnostic. This function is identical, except thatexc
has been set tounittest.SkipTest
.