MCPcopy Create free account
hub / github.com/VectifyAI/OpenKB / fake_skill

Function fake_skill

tests/test_deck_creator.py:63–67  ·  view source on GitHub ↗
(skill_name, intent, **kw)

Source from the content-addressed store, hash-verified

61 kb_dir = _make_kb(tmp_path)
62
63 async def fake_skill(skill_name, intent, **kw):
64 if skill_name == DEFAULT_DECK_SKILL:
65 _write_index(kb_dir, "test-deck")
66 return _producer_result(kb_dir, "test-deck")
67 return _critic_result()
68
69 with patch("openkb.deck.creator.run_skill", new=AsyncMock(side_effect=fake_skill)) as run_skill:
70 result = await run_deck_create(

Callers

nothing calls this directly

Calls 5

SkillRunResultClass · 0.90
SkillNotFoundErrorClass · 0.90
_write_indexFunction · 0.85
_producer_resultFunction · 0.85
_critic_resultFunction · 0.85

Tested by

no test coverage detected