Add pytest fixture for database session in tests

Introduce a `db_session` pytest fixture to provide a fresh SQLite in-memory database for each test function. This ensures isolated and consistent database state across tests by setting up and tearing down the database automatically.
This commit is contained in:
2025-02-28 14:19:58 +01:00
parent 1d51e2ad20
commit 82e0f192b1

View File