This commit is contained in:
Eugene Yurtsev 2023-09-28 11:27:20 -04:00
parent d1d7d0cb27
commit 4ba9c16f74

View File

@ -2758,12 +2758,13 @@ def test_reprsentation_of_runnables() -> None:
assert repr(RunnableLambda(func=f, afunc=af)) == "RunnableLambda(...)" assert repr(RunnableLambda(func=f, afunc=af)) == "RunnableLambda(...)"
sequence = RunnableLambda(lambda x: x + 2) | { assert repr(
"a": RunnableLambda(lambda x: x * 2), RunnableLambda(lambda x: x + 2)
"b": RunnableLambda(lambda x: x * 3), | {
} "a": RunnableLambda(lambda x: x * 2),
"b": RunnableLambda(lambda x: x * 3),
assert repr(sequence) == ( }
) == (
"RunnableLambda(lambda x: x * 3)\n" "RunnableLambda(lambda x: x * 3)\n"
"| {\n" "| {\n"
" a: RunnableLambda(...),\n" " a: RunnableLambda(...),\n"