aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2023-09-14 20:46:56 +0200
committerDaniel Schadt <kingdread@gmx.de>2023-09-14 20:46:56 +0200
commit6b7901bed6e302b5b76ea34ef63f8df5d0122deb (patch)
tree546886655533c4edb4b6517a1b85645d425947b3
parenta72e5a97bd2efb11f012cd2d1b7ad02ab6579f8b (diff)
downloadfietsboek-6b7901bed6e302b5b76ea34ef63f8df5d0122deb.tar.gz
fietsboek-6b7901bed6e302b5b76ea34ef63f8df5d0122deb.tar.bz2
fietsboek-6b7901bed6e302b5b76ea34ef63f8df5d0122deb.zip
fix tests
-rw-r--r--fietsboek/models/user.py1
-rw-r--r--tests/playwright/conftest.py2
2 files changed, 2 insertions, 1 deletions
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