Move skip condition under skip_checks class method
Everything related to skip conditions in class level
should be under skip_checks class method.
Change-Id: I48441dc25b260f894fa8b6b5421f1739249c602a
diff --git a/manila_tempest_tests/tests/api/admin/test_quotas.py b/manila_tempest_tests/tests/api/admin/test_quotas.py
index 7ef3a96..e8377e1 100644
--- a/manila_tempest_tests/tests/api/admin/test_quotas.py
+++ b/manila_tempest_tests/tests/api/admin/test_quotas.py
@@ -35,10 +35,14 @@
class SharesAdminQuotasTest(base.BaseSharesAdminTest):
@classmethod
- def resource_setup(cls):
+ def skip_checks(cls):
+ super(SharesAdminQuotasTest, cls).skip_checks()
if not CONF.share.run_quota_tests:
msg = "Quota tests are disabled."
raise cls.skipException(msg)
+
+ @classmethod
+ def resource_setup(cls):
super(SharesAdminQuotasTest, cls).resource_setup()
cls.client = cls.shares_v2_client
cls.user_id = cls.client.user_id