Commit 0e77384
fix(test): ensure model_endpoints table exists for in-memory CI run
CI runs bare pytest with DATABASE_URL=sqlite:///:memory: (per conftest); the
in-memory model_endpoints table is not reliably present on the active
connection by the time the same-base-url test seeds rows (a prior test in the
full suite can recycle the singleton connection). Call
Base.metadata.create_all(bind=engine) at the top of the test (no-op when the
table already exists, e.g. in the Docker image where setup.py created the DB).
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 15337d7 commit 0e77384
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
| |||
0 commit comments