cfme.markers.uses module

uses_*: Provides a set of fixtures used to mark tests for filtering on the command-line.

Tests using these fixtures directly or indirectly can be filtered using py.test’s -k filter argument. For example, run tests that use the ssh client:

py.test -k uses_ssh

Additionally, tests using one of the fixtures listed in appliance_marks will be marked with is_appliance, for easily filtering out appliance tests, e.g:

py.test -k 'not is_appliance'

All fixtures created by this module will have the uses_ prefix.

Note

is_appliance is a mark that will be dynamically set based on fixtures used, but is not a fixture itself.

cfme.markers.uses.is_appliance()[source]

Fixture which marks a test with the is_appliance mark

cfme.markers.uses.pytest_itemcollected(item)[source]

pytest hook that actually does the marking

See: http://pytest.org/latest/plugins.html#_pytest.hookspec.pytest_collection_modifyitems

cfme.markers.uses.uses_cloud_providers(uses_providers)[source]

Fixture which marks a test with the uses_cloud_providers and uses_providers marks

cfme.markers.uses.uses_db(is_appliance)[source]

fixture that marks tests with a uses_db and a is_appliance mark

cfme.markers.uses.uses_event_listener()[source]

Fixture which marks a test with the uses_event_listener mark

cfme.markers.uses.uses_infra_providers(uses_providers)[source]

Fixture which marks a test with the uses_infra_providers and uses_providers marks

cfme.markers.uses.uses_providers()[source]

Fixture which marks a test with the uses_providers mark

cfme.markers.uses.uses_pxe()[source]

Fixture which marks a test with the uses_pxe mark

cfme.markers.uses.uses_ssh(is_appliance)[source]

fixture that marks tests with a uses_ssh and a is_appliance mark