Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Oct 12, 2023
1 parent ce2fb7a commit 769bc86
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions backend/api/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ def setUp(self):
self.user = User.objects.get(id=2)

def _get_session_auth_factors(self, response: HttpResponse):
cookie = response.cookies["sessionid_httponly_false"].value
return [af for af in cookie.split(",") if af != ""]
return [
auth_factor
for auth_factor in response.cookies[
"sessionid_httponly_false"
].value.split(",")
if auth_factor != ""
]

def test_post__otp(self):
AuthFactor.objects.create(
Expand Down

0 comments on commit 769bc86

Please sign in to comment.