MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / FakeContext

Class FakeContext

tests/test_registration_codex2api.py:93–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 pass
92
93 class FakeContext:
94 def __enter__(self):
95 return FakeDb()
96
97 def __exit__(self, exc_type, exc, tb):
98 return False
99
100 monkeypatch.setattr(registration, "get_db", lambda: FakeContext())
101 monkeypatch.setattr(registration.crud, "create_registration_task", lambda db, task_uuid, proxy: None)

Calls

no outgoing calls