Fixture for a GenerateAnswerNode instance using DummyLLM. Uses a valid input keys string ("dummy_input & doc") to avoid parsing errors.
()
| 31 | |
| 32 | @pytest.fixture |
| 33 | def dummy_node(): |
| 34 | """ |
| 35 | Fixture for a GenerateAnswerNode instance using DummyLLM. |
| 36 | Uses a valid input keys string ("dummy_input & doc") to avoid parsing errors. |
| 37 | """ |
| 38 | node_config = {"llm_model": DummyLLM(), "verbose": False, "timeout": 1} |
| 39 | node = GenerateAnswerNode("dummy_input & doc", ["output"], node_config=node_config) |
| 40 | node.logger = DummyLogger() |
| 41 | node.get_input_keys = lambda state: ["dummy_input", "doc"] |
| 42 | return node |
| 43 | |
| 44 | |
| 45 | def test_process_missing_content_and_user_prompt(dummy_node): |
nothing calls this directly
no test coverage detected