From 769bc8657cc6217d597971089f17050f8e65f8b8 Mon Sep 17 00:00:00 2001 From: SKairinos Date: Thu, 12 Oct 2023 13:24:42 +0100 Subject: [PATCH] feedback --- backend/api/tests/test_views.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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(