Decorator for marking test’s service requirements, if requirements are not met in the configuration file test is marked as skipped.
Usage: from openstack_dashboard.test.integration_tests.tests import decorators
@decorators.services_required(“sahara”) class TestLogin(helpers.BaseTestCase): . . .
from openstack_dashboard.test.integration_tests.tests import decorators
class TestLogin(helpers.BaseTestCase):
@decorators.services_required(“sahara”) def test_login(self):
login_pg = loginpage.LoginPage(self.driver, self.conf) . . .