Commit ec6e9ebd authored by lukas.burgey's avatar lukas.burgey
Browse files

Fix teardown

parent 4bb51ac0
Pipeline #81759 failed with stage
in 1 minute and 46 seconds
......@@ -98,19 +98,24 @@ class BaseTestCase(TestCase):
def tearDownClass(cls):
# delete in reverse order
for member in [
cls.key,
cls.service_one,
cls.service_two_a,
cls.service_two_b,
cls.site,
cls.site2,
cls.user,
cls.group_none,
cls.group_one,
cls.group_two,
cls.idp,
'key',
'service_one',
'service_two_a',
'service_two_b',
'site',
'site2',
'user',
'group_none',
'group_one',
'group_two',
'idp',
]:
member.delete()
if hasattr(cls, member):
try:
getattr(cls, member).delete()
except:
# pylint: disable=bare-except
pass
# the user is logged in using session authentication
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment