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_ifdecorator, customized for unittest.pulp_smash.selectors.skip_ifis test runner agnostic. This function is identical, except thatexchas been set tounittest.SkipTest.