|
|
@ -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"
|
|
|
|