8000 fix: Update test_operation_parser.py · GeekyprogrammerEJ/adk-python@81aa11f · GitHub
[go: up one dir, main page]

Skip to content

Commit 81aa11f

Browse files
authored
fix: Update test_operation_parser.py
1 parent 6f18282 commit 81aa11f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/unittests/tools/openapi_tool/openapi_spec_parser/test_operation_parser.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,9 +347,8 @@ def test_get_json_schema(sample_operation):
347347
assert json_schema['type'] == 'object'
348348
assert 'param1' in json_schema['properties']
349349
assert 'prop1' in json_schema['properties']
350-
assert 'param1' in json_schema['required']
351-
assert 'prop1' in json_schema['required']
352-
350+
# By default nothing is required unless explicitly stated
351+
assert 'required' not in json_schema or json_schema['required'] == []
353352

354353
def test_get_signature_parameters(sample_operation):
355354
"""Test get_signature_parameters method."""

0 commit comments

Comments
 (0)
0