diff --git a/backend/api/tests/test_views.py b/backend/api/tests/test_views.py index 8cb9f15..4591149 100644 --- a/backend/api/tests/test_views.py +++ b/backend/api/tests/test_views.py @@ -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(