mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
Nothing catches a revert of `_flask_app` to scope='function'. The suite would still pass — just ~3x slower — and CI would drift back to a 20-minute wait, which is how it got that way in the first place. Same idea as the collected-test-count ratchet: turn a silent regression into a red test. Also asserts the inverse for `app`, which must stay function-scoped: it is what resets the database between tests, and session-scoping it would leak each test's rows into the next and fail while pointing at the wrong test. Verified both directions — flipping _flask_app back to scope='function' fails the guard with the explanation, and restoring it passes. Ratchet 3173 -> 3175 for the two new tests. Plan 64 Phase 4. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>