diff options
Diffstat (limited to 'tests/playwright')
-rw-r--r-- | tests/playwright/conftest.py | 4 |
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) |