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

Function dummy_node_with_pipe

tests/test_generate_answer_node.py:72–81  ·  view source on GitHub ↗

Fixture for a GenerateAnswerNode instance using DummyLLMWithPipe. Uses a valid input keys string ("dummy_input & doc") to avoid parsing errors.

()

Source from the content-addressed store, hash-verified

70
71@pytest.fixture
72def dummy_node_with_pipe():
73 """
74 Fixture for a GenerateAnswerNode instance using DummyLLMWithPipe.
75 Uses a valid input keys string ("dummy_input & doc") to avoid parsing errors.
76 """
77 node_config = {"llm_model": DummyLLMWithPipe(), "verbose": False, "timeout": 480}
78 node = GenerateAnswerNode("dummy_input & doc", ["output"], node_config=node_config)
79 node.logger = DummyLogger()
80 node.get_input_keys = lambda state: ["dummy_input", "doc"]
81 return node
82
83
84def test_execute_multiple_chunks(dummy_node_with_pipe):

Callers

nothing calls this directly

Calls 3

GenerateAnswerNodeClass · 0.90
DummyLLMWithPipeClass · 0.85
DummyLoggerClass · 0.70

Tested by

no test coverage detected