mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
Some earlier tests in the suite replace sys.modules['websockets'] with a stub. When the smoke test ran after those, uvicorn's websockets-sansio backend tried to import websockets.server at connect time, resolved through the stub, and failed with 'No module named websockets.server; websockets is not a package', preventing the mock proxy from starting. Add an autouse fixture that drops stub websockets.* entries from sys.modules, re-imports the real package + websockets.asyncio.server, and restores prior state on teardown. Keeps the smoke test deterministic regardless of collection order. |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| test_repro_codex_replay_smoke.py | ||