robottelo.decorators.host
¶
Implements decorator regarding satellite host
Module Contents¶
Functions¶
|
Decorator to skip tests based on host version |
Attributes¶
- robottelo.decorators.host.LOGGER¶
- robottelo.decorators.host.skip_if_os(*versions)¶
Decorator to skip tests based on host version
If the calling function uses ‘RHEL6’ - test will be skipped for RHEL6, but will run for whatever another version, e.g, RHEL5, RHEL6.1, RHEL7, and so on
Note: If the version can’t be obtained, tests will run
Usage:
To skip a specific test:
from robottelo.decorators.host import skip_if_host_is @skip_if_os('RHEL6') def test_hostgroup_create(): # test code continues here
- Parameters
versions (tuple) – args containing host versions for which test must be skipped
- Returns
unittest2.skipIf