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
This commit is contained in:
lkuchlan 2022-09-19 10:39:12 +03:00
parent 045dd282fa
commit 5e559df869
1 changed files with 5 additions and 1 deletions

View File

@ -35,10 +35,14 @@ SHARE_REPLICA_QUOTAS_MICROVERSION = "2.53"
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