Files
DeepTutor/tests/api
Bingxi Zhao (Frank) 847d2e7fff test(question): stop the mimic websocket test from depending on import order
The fixture replaced the whole deeptutor.services.config package with a
two-attribute stub. That was enough for the router's own import, but the
websocket handler lazily imports deeptutor.api.routers.auth, which reads
other loaders out of the same package — so the test only passed when an
earlier test had already cached that module and the lazy import never
reached the stub. On its own it failed with ImportError, and any change
to test ordering could have flipped the full run red.

Defer everything not deliberately overridden to the real module (PEP 562
module __getattr__), so the fake stays two lines wide and cannot rot as
the auth path grows dependencies.
2026-08-07 03:18:38 +08:00
..
2026-06-11 20:03:34 +08:00
2026-06-11 20:03:34 +08:00
2026-06-18 00:22:48 +08:00
2026-06-17 10:50:44 +08:00
2026-07-31 00:25:48 +08:00
2026-06-11 20:03:34 +08:00
2026-07-31 00:25:48 +08:00
2026-06-11 20:03:34 +08:00
2026-06-21 14:43:41 +08:00
2026-06-18 00:22:48 +08:00
2026-07-31 00:25:48 +08:00
2026-07-31 00:25:48 +08:00
2026-08-02 13:07:32 +08:00
2026-07-31 00:25:48 +08:00
2026-06-18 00:22:48 +08:00