Skip to content

Commit 8d1f2de

Browse files
committed
Fix unit tests
1 parent 94bf947 commit 8d1f2de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_protected_endpoints.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,10 +403,10 @@ def test_headers(self):
403403
refresh_csrf = resp.headers[4][1]
404404
self.assertIn('access_token_cookie', access_cookie)
405405
self.assertIn('csrf_access_token', access_csrf)
406-
self.assertIn('Path=/api/', access_csrf)
406+
self.assertIn('Path=/', access_csrf)
407407
self.assertIn('refresh_token_cookie', refresh_cookie)
408408
self.assertIn('csrf_refresh_token', refresh_csrf)
409-
self.assertIn('Path=/auth/refresh', refresh_csrf)
409+
self.assertIn('Path=/', refresh_csrf)
410410

411411
# Try with overwritten options
412412
self.app.config['JWT_ACCESS_COOKIE_NAME'] = 'new_access_cookie'
@@ -423,10 +423,10 @@ def test_headers(self):
423423
refresh_csrf = resp.headers[4][1]
424424
self.assertIn('new_access_cookie', access_cookie)
425425
self.assertIn('x_csrf_access_token', access_csrf)
426-
self.assertNotIn('Path=/', access_csrf)
426+
self.assertIn('Path=/', access_csrf)
427427
self.assertIn('new_refresh_cookie', refresh_cookie)
428428
self.assertIn('x_csrf_refresh_token', refresh_csrf)
429-
self.assertNotIn('Path=/', refresh_csrf)
429+
self.assertIn('Path=/', refresh_csrf)
430430

431431
def test_endpoints_with_cookies(self):
432432
self.app.config['JWT_COOKIE_CSRF_PROTECT'] = False

0 commit comments

Comments
 (0)