Skip to content

Commit

Permalink
fix: unreachable code due to faulty indentation
Browse files Browse the repository at this point in the history
Signed-off-by: F.N. Claessen <felix@seita.nl>
  • Loading branch information
Flix6x committed Sep 20, 2023
1 parent fa953fc commit 1e726c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flexmeasures/api/tests/test_auth_token.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from flexmeasures.api.tests.utils import UserContext


def patched_check_token():
def patched_check_token() -> bool:
"""
The _check_token function in Flask-Security is successfully getting the user,
but it fails to stick with flask_login.
Expand All @@ -25,7 +25,7 @@ def patched_check_token():
identity_changed.send(app, identity=Identity(user.fs_uniquifier))

login_user(user) # THIS LINE ADDED BY US
return True
return True

return False

Expand Down

0 comments on commit 1e726c3

Please sign in to comment.