Skip to content

Commit

Permalink
Fixing reference to cookie_jar
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbyt3r committed Aug 1, 2024
1 parent 8387fa4 commit 87b74a6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions backend/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,7 @@
import os

def csrf(client):
for cookie in client.cookie_jar:
if cookie.name == "csrf_token":
return cookie.value
return ""
return client.get_cookie("csrf_token") or ""

@pytest.fixture(params=[False, True])
def tuber(postgresql, redis=False):
Expand Down

0 comments on commit 87b74a6

Please sign in to comment.