aboutsummaryrefslogtreecommitdiff
path: root/tests/playwright/conftest.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-06-12 20:28:37 +0200
committerDaniel Schadt <kingdread@gmx.de>2025-06-12 20:28:37 +0200
commitabba548d84fa66bd7ac81683d3a70611cd6a8a3b (patch)
tree9343994c998cc84970a92510626b3a62e3fa46d9 /tests/playwright/conftest.py
parentcf25779d218a4ace062f3c0549c0f2901a0c2d6a (diff)
parenta52781d2e039ccf9f984e06a4ff3aa5e02caff8b (diff)
downloadfietsboek-abba548d84fa66bd7ac81683d3a70611cd6a8a3b.tar.gz
fietsboek-abba548d84fa66bd7ac81683d3a70611cd6a8a3b.tar.bz2
fietsboek-abba548d84fa66bd7ac81683d3a70611cd6a8a3b.zip
Merge branch 'postgres-support'HEADmaster
Diffstat (limited to 'tests/playwright/conftest.py')
-rw-r--r--tests/playwright/conftest.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/playwright/conftest.py b/tests/playwright/conftest.py
index e914b01..adf5ef3 100644
--- a/tests/playwright/conftest.py
+++ b/tests/playwright/conftest.py
@@ -57,7 +57,11 @@ def dbaccess(app):
through and the running WSGI app cannot read them.
"""
session_factory = app.registry["dbsession_factory"]
- return session_factory()
+ factory = session_factory()
+
+ yield factory
+
+ factory.close()
class Helper: