Fixture for creating a GenerateAnswerNode instance for testing the process() method success case.
()
| 159 | |
| 160 | @pytest.fixture |
| 161 | def dummy_node_for_process(): |
| 162 | """ |
| 163 | Fixture for creating a GenerateAnswerNode instance for testing the process() method success case. |
| 164 | """ |
| 165 | node_config = {"llm_model": DummyChain(), "verbose": False, "timeout": 1} |
| 166 | node = GenerateAnswerNode( |
| 167 | "user_prompt & content", ["output"], node_config=node_config |
| 168 | ) |
| 169 | node.logger = DummyLogger() |
| 170 | node.get_input_keys = lambda state: ["user_prompt", "content"] |
| 171 | return node |
| 172 | |
| 173 | |
| 174 | def test_process_success(dummy_node_for_process): |
nothing calls this directly
no test coverage detected