(self, key)
| 56 | def test_returns_false_when_redis_raises(monkeypatch): |
| 57 | class _Boom: |
| 58 | def get(self, key): |
| 59 | raise RuntimeError("redis down") |
| 60 | |
| 61 | monkeypatch.setattr(base, "_get_redis", lambda: _Boom()) |
| 62 | assert base.chat_session_belongs_to_user("abc-uuid", 7) is False |
no outgoing calls
no test coverage detected