MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / fake_import

Function fake_import

experiments/tests/test_profile_bootstrap.py:1295–1298  ·  view source on GitHub ↗
(name)

Source from the content-addressed store, hash-verified

1293 real_import = importlib.import_module
1294
1295 def fake_import(name):
1296 if name == "agents.coldstart-agent.main":
1297 return FakeColdStartModule()
1298 return real_import(name)
1299
1300 monkeypatch.setattr(master_coordinator, "ROLE_META_PATH", str(roles_path))
1301 monkeypatch.setattr(master_coordinator.importlib, "import_module", fake_import)

Callers

nothing calls this directly

Calls 2

FakeColdStartModuleClass · 0.85
FakeReadingAgentClass · 0.70

Tested by

no test coverage detected