Source code for cfme.fixtures.has_persistent_volume

import pytest


[docs]@pytest.fixture(scope='function') def has_persistent_volume(provider, appliance): """Verifying that some persistent volume exists""" vols = provider.mgmt.list_persistent_volume() vols_count = len(vols) if vols_count: yield else: pytest.skip('No Persistent Volumes Detected on OpenShift Provider {}'.format(provider.name))