Skip to content

Commit 50a949c

Browse files
committed
Update test
1 parent 6dcab95 commit 50a949c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tests/test_function.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,15 @@ def test_function_explicit_context():
9191
hello_call_template = {
9292
"description": "Call hello template",
9393
"text": [
94-
{"defs": {"alias": "${ hello }"}},
94+
{"defs": {"alias": {"data": {}}}},
9595
{
9696
"description": "Define hello",
97-
"def": "hello",
97+
"def": "f",
9898
"function": {"name": "str"},
9999
"return": {"text": ["Hello ", {"get": "name"}, "!"]},
100100
},
101-
{"call": "${ alias }", "args": {"name": "World"}},
101+
{"lang": "python", "code": "result = alias['hello'] = f"},
102+
{"call": '${ alias["hello"] }', "args": {"name": "World"}},
102103
],
103104
}
104105

0 commit comments

Comments
 (0)