MCPcopy Index your code
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / DummyChain

Class DummyChain

tests/test_generate_answer_node.py:152–157  ·  view source on GitHub ↗

A dummy chain for simulating a chain's invoke behavior. Returns a successful answer in the expected format.

Source from the content-addressed store, hash-verified

150
151
152class DummyChain:
153 """A dummy chain for simulating a chain's invoke behavior.
154 Returns a successful answer in the expected format."""
155
156 def invoke(self, inputs):
157 return {"content": "successful answer"}
158
159
160@pytest.fixture

Callers 2

dummy_node_for_processFunction · 0.85
test_process_successFunction · 0.85

Calls

no outgoing calls

Tested by 2

dummy_node_for_processFunction · 0.68
test_process_successFunction · 0.68