Skip to content

Commit ed5eff6

Browse files
kutcodeclaude
andcommitted
Fix test DB: explicitly import models before create_all
Ensures all SQLAlchemy models are registered with Base.metadata before the test DB engine creates tables, preventing "no such table: processing_jobs" errors in CI. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 7a37472 commit ed5eff6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
from docx import Document as DocxDocument
1010

1111
from app.database import Base, get_db
12+
import app.models # noqa: F401 — ensure all models are registered with Base.metadata before create_all
1213
from app.main import app
1314
from app.config import settings
1415

0 commit comments

Comments
 (0)