Skip to content

Commit d092006

Browse files
saurabhkoshatwaranubhav756
authored andcommitted
tests fix
1 parent eeab607 commit d092006

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

packages/toolbox-core/tests/test_utils.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ def create_param_mock(name: str, description: str, annotation: Type) -> Mock:
4444
mock_param_info.annotation = annotation
4545

4646
param_mock.to_param.return_value = mock_param_info
47+
param_mock.get_python_safe_field_name.return_value = ParameterSchema(
48+
name=name,
49+
type="string",
50+
description=description,
51+
required=param_mock.required,
52+
).get_python_safe_field_name()
4753
return param_mock
4854

4955

0 commit comments

Comments
 (0)