Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding prints that show the field names being compared #24

Merged
merged 2 commits into from
May 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions test_oss_cloud_api_compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,10 @@ def extract_types(d):
if oss_name in KNOWN_ALIASES[endpoint][method]:
oss_name = KNOWN_ALIASES[endpoint][method][oss_name]

# Note, this print is here intentionally to make it easier to understand test
# failures when looping over fields
print("parameter name:", oss_name)

assert oss_name in cloud_props[1]
(
cloud_name,
Expand Down Expand Up @@ -382,6 +386,10 @@ def preprocess_pydantic_v1_type(schema):
]

for field_name, props in items:
# Note, this print is here intentionally to make it easier to understand
# test failures when looping over fields
print("field name:", field_name)

assert field_name in cloud_props

oss_options = set()
Expand Down