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.

markers.uses.appliance_marks = set(['uses_ssh', 'uses_db'])

List of fixtures that, when used, indicate an appliance is being tested by applying the is_appliance mark.

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

markers.uses.uses_blockers()

Fixture which marks a test with the uses_blockers mark

markers.uses.uses_cloud_providers(uses_providers)[source]

Fixture which marks a test with the uses_cloud_providers and uses_providers marks

markers.uses.uses_db()

Fixture which marks a test with the uses_db mark

markers.uses.uses_event_listener()

Fixture which marks a test with the uses_event_listener mark

markers.uses.uses_infra_providers(uses_providers)[source]

Fixture which marks a test with the uses_infra_providers and uses_providers marks

markers.uses.uses_providers()

Fixture which marks a test with the uses_providers mark

markers.uses.uses_pxe()

Fixture which marks a test with the uses_pxe mark

markers.uses.uses_soap()

Fixture which marks a test with the uses_soap mark

markers.uses.uses_ssh()

Fixture which marks a test with the uses_ssh mark