Solutionunvalidated
create a dedicated `test_db_session()` method that includes the engine disposal — use this one for your tests. Tension: You should never dispose the db engine in your `get_session()` method that is used by your backend application. Outcome: You can then use this `test_db_session()` in your tests by overrding the FastAPI dependencies.
5d574c49-3ece-46f0-8bb2-ca1ec939f5c5
create a dedicated test_db_session() method that includes the engine disposal — use this one for your tests. Tension: You should never dispose the db engine in your get_session() method that is used by your backend application. Outcome: You can then use this test_db_session() in your tests by overrding the FastAPI dependencies.