71ca3a0d6e
Add _reset_worker_app_db pytest fixture with autouse=True to prevent mock pollution from leaking between tests. This fixes the flaky test_batch_download_session_closed test that would fail when running the full test suite due to worker_app.db being replaced with a MagicMock from a previous test.