aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-08-16 21:18:31 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-08-16 21:18:31 +0200
commit68e49e1e879a32c0f0d764f927923ca42706e593 (patch)
tree9f88b94aa75633405463ae768cb06074f8c1e82c /tests
parent6261e0da3b2c4ac9596ac70b74c3a32552bcb180 (diff)
parent20ddfb7a1d39b55a6d8044a083d2d151bddec78d (diff)
downloadfietsboek-68e49e1e879a32c0f0d764f927923ca42706e593.tar.gz
fietsboek-68e49e1e879a32c0f0d764f927923ca42706e593.tar.bz2
fietsboek-68e49e1e879a32c0f0d764f927923ca42706e593.zip
Merge branch 'identified-session'
Diffstat (limited to 'tests')
-rw-r--r--tests/playwright/conftest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/playwright/conftest.py b/tests/playwright/conftest.py
index f57aca7..b17d457 100644
--- a/tests/playwright/conftest.py
+++ b/tests/playwright/conftest.py
@@ -81,7 +81,7 @@ class Helper:
user.set_password("password")
self.dbaccess.add(user)
self.dbaccess.commit()
- self.dbaccess.refresh(user, ["id"])
+ self.dbaccess.refresh(user, ["id", "email"])
self.dbaccess.expunge(user)
self._johnny = user
return user
@@ -93,7 +93,7 @@ class Helper:
config = Config.construct(session_key=self.app_settings["session_key"])
secret = config.derive_secret("auth-cookie")
helper = AuthTktCookieHelper(secret)
- headers = helper.remember(DummyRequest(), str(user.id))
+ headers = helper.remember(DummyRequest(), user.authenticated_user_id())
for _, header_val in headers:
cookie = header_val.split(";")[0]
name, value = cookie.split("=", 1)