test(db): run the demo tool gate, addon gating, atlas and assignments MCP suites on the real database module

They seed through the booted container's ORM instead of a second ORM over
the SQLite snapshot mock, and reset through resetDatabase, so they run in
the Postgres lane as well. The tour the assignment cases put on a day is
made with makeTour instead of a raw insert.
This commit is contained in:
Maurice
2026-11-17 18:20:16 +01:00
parent caae538056
commit 876cc5e0f0
7 changed files with 359 additions and 385 deletions
-5
View File
@@ -63,13 +63,8 @@
"tests/setup.ts": 1,
"tests/unit/auto-backup.test.ts": 1,
"tests/unit/db/database-lazy-open.test.ts": 1,
"tests/unit/mcp/demo-tool-gate.test.ts": 1,
"tests/unit/mcp/tools-addon-gating.test.ts": 1,
"tests/unit/mcp/tools-airtrail.test.ts": 1,
"tests/unit/mcp/tools-assignments-reservations-extra.test.ts": 1,
"tests/unit/mcp/tools-assignments.test.ts": 1,
"tests/unit/mcp/tools-atlas-expanded.test.ts": 1,
"tests/unit/mcp/tools-atlas.test.ts": 1,
"tests/unit/mcp/tools-budget-advanced.test.ts": 1,
"tests/unit/mcp/tools-budget.test.ts": 1,
"tests/unit/mcp/tools-categories.test.ts": 1,