Skip to content

[python] test HTTPX sync wire names#24130

Merged
wing328 merged 1 commit into
OpenAPITools:masterfrom
tamird:upstream/python-regenerate-httpx-sync-wire-samples
Jun 26, 2026
Merged

[python] test HTTPX sync wire names#24130
wing328 merged 1 commit into
OpenAPITools:masterfrom
tamird:upstream/python-regenerate-httpx-sync-wire-samples

Conversation

@tamird

@tamird tamird commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Commit 2b6b544f brings the HTTPX sync generated models in line with
3a307ab7. The handwritten oneOf and anyOf tests still construct
payloads with sanitized Python names, so the sample jobs now fail while
deserializing BasquePig.

Update those tests to send and assert the exact wire names. This keeps
the regression coverage aligned with the generated fields and catches
future sample drift.

@wing328

wing328 commented Jun 25, 2026

Copy link
Copy Markdown
Member

just pushed 2b6b544 to master to update the samples.

let's see if the CI tests pass

@tamird tamird force-pushed the upstream/python-regenerate-httpx-sync-wire-samples branch from 5e2b94b to ebea6ce Compare June 25, 2026 17:24
@tamird tamird changed the title [python] regenerate HTTPX sync models [python] sync HTTPX wire-name sample Jun 25, 2026
@tamird tamird marked this pull request as ready for review June 25, 2026 17:57
@tamird

tamird commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@wing328, could you review this follow-up to 3a307ab? The HTTPX-sync sample was added after that commit's generated snapshot, so this brings its models and handwritten oneOf/anyOf expectations in line with the shared wire-name fixture.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 6 files

Re-trigger cubic

@tamird tamird force-pushed the upstream/python-regenerate-httpx-sync-wire-samples branch from ebea6ce to 2816412 Compare June 25, 2026 18:10
@tamird tamird changed the title [python] sync HTTPX wire-name sample [python] test HTTPX sync wire names Jun 25, 2026
@tamird

tamird commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

@wing328 this now just adds the missing unit test coverage. PTAL

@tamird tamird force-pushed the upstream/python-regenerate-httpx-sync-wire-samples branch from 2816412 to 627690b Compare June 25, 2026 19:10
Commit 2b6b544 brings the HTTPX sync generated models in line with
3a307ab. The handwritten oneOf and anyOf tests still construct payloads
with sanitized Python names, so the sample jobs now fail while
deserializing BasquePig.

Update those tests to send and assert the exact wire names. This keeps
the regression coverage aligned with the generated fields and catches
future sample drift.
@tamird tamird force-pushed the upstream/python-regenerate-httpx-sync-wire-samples branch from 627690b to d6517f4 Compare June 25, 2026 19:22
@tamird

tamird commented Jun 25, 2026

Copy link
Copy Markdown
Contributor Author

The remaining CircleCI node2 failure is unrelated to this Python-only change. It selected cpp-restsdk and exited during toolchain setup; the only reported error is apt rejecting Google's Chrome repository because public key FD533C07C264648F is unavailable, and no project tests ran. All GitHub Actions checks pass, including HTTPX sync on Python 3.10 through 3.14.

@wing328

wing328 commented Jun 26, 2026

Copy link
Copy Markdown
Member

agreed circleci test failure not related to this change.

@wing328 wing328 merged commit 7b9c637 into OpenAPITools:master Jun 26, 2026
40 of 41 checks passed
@tamird tamird deleted the upstream/python-regenerate-httpx-sync-wire-samples branch June 26, 2026 10:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants