moo.conftest.mock_player_connected
- moo.conftest.mock_player_connected(monkeypatch)
Patch is_connected to return True for all objects during tests.
In production, is_connected() checks a Redis cache key set by the SSH shell. That key is never set during tests, so without this patch every player avatar appears disconnected and tell() / write() never fires.