From 6b7901bed6e302b5b76ea34ef63f8df5d0122deb Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Thu, 14 Sep 2023 20:46:56 +0200 Subject: fix tests --- fietsboek/models/user.py | 1 + tests/playwright/conftest.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fietsboek/models/user.py b/fietsboek/models/user.py index 7d327b7..36cdbc9 100644 --- a/fietsboek/models/user.py +++ b/fietsboek/models/user.py @@ -240,6 +240,7 @@ class User(Base): user = session.execute(query).scalar_one() except NoResultFound: return None + # pylint: disable=protected-access if user._fingerprint() != fingerprint: return None return user diff --git a/tests/playwright/conftest.py b/tests/playwright/conftest.py index b17d457..aefe1ee 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", "email"]) + self.dbaccess.refresh(user, ["id", "email", "password", "session_secret"]) self.dbaccess.expunge(user) self._johnny = user return user -- cgit v1.2.3