Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalBackend
Commits
ec6e9ebd
Commit
ec6e9ebd
authored
Apr 09, 2020
by
lukas.burgey
Browse files
Fix teardown
parent
4bb51ac0
Pipeline
#81759
failed with stage
in 1 minute and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
feudal/backend/tests.py
View file @
ec6e9ebd
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment