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