"""Tests for transcription.db — schema bootstrap and session factory.""" class TestSchemaBootstrap: """Verify create_all produces the expected table set.""" def test_create_all_creates_expected_tables(self): """After create_all(), document, job, and transcript tables exist.""" class TestSessionFactory: """Verify get_session yields and cleans up sessions.""" def test_get_session_yields_session(self): """get_session() yields a usable Session object.""" def test_session_is_closed_after_generator_exit(self): """After the context manager exits, the session is closed."""