Skip to content

Commit a4cb561

Browse files
committed
fixed yaml argument parsing logic
1 parent 32db995 commit a4cb561

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/google-cloud-firestore/tests/system/test_pipeline_acceptance.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,8 @@ def _apply_yaml_args_to_callable(callable_obj, client, yaml_args):
336336
):
337337
# yaml has an array of arguments. Treat as args
338338
return callable_obj(*parsed)
339+
elif yaml_args is None and callable_obj != expr.Constant:
340+
return callable_obj()
339341
else:
340342
# yaml has a single argument
341343
return callable_obj(parsed)

0 commit comments

Comments
 (0)