aboutsummaryrefslogtreecommitdiff
path: root/tests/playwright/conftest.py
diff options
context:
space:
mode:
authorDaniel Schadt <kingdread@gmx.de>2025-06-08 00:54:58 +0200
committerDaniel Schadt <kingdread@gmx.de>2025-06-08 00:54:58 +0200
commit94d295b366420d9b227a6192d66e73ee4c16718b (patch)
treea8a0bb4b74306f966108bb4c536bfbe1a6c6ec29 /tests/playwright/conftest.py
parent17789c1c0bbe83d369ea5df46aa674d140558618 (diff)
downloadfietsboek-94d295b366420d9b227a6192d66e73ee4c16718b.tar.gz
fietsboek-94d295b366420d9b227a6192d66e73ee4c16718b.tar.bz2
fietsboek-94d295b366420d9b227a6192d66e73ee4c16718b.zip
close SQL connections in tests
Otherwise Postgres does not let us drop the tables and hangs forever
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: