Skip to content

Commit

Permalink
Removed redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
khalidmammadov committed Nov 30, 2021
1 parent 94417af commit 31550c5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions tests/test_utils/api_connexion_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def create_user_scope(app, username, **kwargs):
try:
yield test_user
finally:
delete_user_roles(app, username)
delete_user(app, username)


Expand Down Expand Up @@ -100,12 +99,6 @@ def delete_roles(app):
delete_role(app, role.name)


def delete_user_roles(app, username):
user = app.appbuilder.sm.find_user(username)
for role in user.roles:
delete_role(app, role.name)


def delete_user(app, username):
appbuilder = app.appbuilder
for user in appbuilder.sm.get_all_users():
Expand Down

0 comments on commit 31550c5

Please sign in to comment.