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:
parent
045dd282fa
commit
5e559df869
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue