feat: solution for 'Повторный экзамен: Граф с рефлексией и доработкой'
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import pytest
|
||||
from src.nodes.reflect import ReflectNode
|
||||
|
||||
|
||||
def test_reflect_node():
|
||||
state = {"input": "Hello world"}
|
||||
result = ReflectNode.run(state)
|
||||
assert "reflection" in result
|
||||
expected = (
|
||||
"I see that you said: 'Hello world'. "
|
||||
"Let's reflect on that."
|
||||
)
|
||||
assert result["reflection"] == expected
|
||||
Reference in New Issue
Block a user