mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-09 05:24:49 +09:00
The integration module loaded firewall_service via importlib and registered it in sys.modules under the real name — at collection time, before any test ran. In a full-suite run, every @patch targeting app.services.firewall_service then landed on the shim copy while the firewall test modules held the real one: mocks silently not firing, 32 firewall tests red only in full-suite context, green in every subset. In the full suite (Flask installed) import the real modules; the container legs keep the shim, now under a non-colliding name.