Fixture for a GenerateAnswerNode instance using DummyLLMWithPipe. Uses a valid input keys string ("dummy_input & doc") to avoid parsing errors.
()
| 70 | |
| 71 | @pytest.fixture |
| 72 | def 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 | |
| 84 | def test_execute_multiple_chunks(dummy_node_with_pipe): |
nothing calls this directly
no test coverage detected