Skip to content

Commit 43284df

Browse files
committed
fixed failing test
1 parent cba6289 commit 43284df

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

duneanalytics/duneanalytics.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def login(self):
5858
# get csrf token
5959
self.session.post(csrf_url)
6060
self.csrf = self.session.cookies.get('csrf')
61-
61+
6262
# try to login
6363
form_data = {
6464
'action': 'login',
@@ -68,8 +68,8 @@ def login(self):
6868
'next': BASE_URL
6969
}
7070

71-
self.session.post(auth_url, data=form_data)
72-
self.auth_refresh = self.session.cookies.get('auth-refresh')
71+
full_response = self.session.post(auth_url, data=form_data)
72+
self.auth_refresh = full_response.history[0].cookies.get('auth-refresh')
7373

7474
def fetch_auth_token(self):
7575
"""

0 commit comments

Comments
 (0)