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

Function _collect_fmt

tests/test_chat_slash_commands.py:38–46  ·  view source on GitHub ↗

Return (patch, collected) where collected is a list of printed strings.

()

Source from the content-addressed store, hash-verified

36
37
38def _collect_fmt():
39 """Return (patch, collected) where collected is a list of printed strings."""
40 collected: list[str] = []
41
42 def _fake_fmt(_style, *fragments):
43 for _cls, text in fragments:
44 collected.append(text)
45
46 return patch("openkb.agent.chat._fmt", _fake_fmt), collected
47
48
49# --- /status and /list use click.echo, captured by capsys ---

Calls

no outgoing calls

Tested by

no test coverage detected