Repository navigation
Add Python SDK mock API tests for encode/duration lossy scenarios - #11053
Merged
Merged
Conversation
Add sync and async tests for the Encode_Duration_Lossy_intSeconds and Encode_Duration_Lossy_intMilliseconds Spector scenarios (from PR #10835) in both azure and unbranded test flavors. Bump @typespec/http-specs to 0.1.0-alpha.39-dev.2 which includes the lossy duration scenarios. Co-authored-by: msyyc <70930885+msyyc@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add test case for pull request 10835
Add Python SDK mock API tests for encode/duration lossy scenarios
Jun 23, 2026
Yuchao Yan (msyyc)
marked this pull request as ready for review
June 24, 2026 02:22
commit: |
Contributor
|
All changed packages have been documented.
Show changes
|
|
You can try these changes here
|
Yuchao Yan (msyyc)
enabled auto-merge
June 24, 2026 03:44
Yuchao Yan (msyyc)
approved these changes
Jun 24, 2026
Chenxi Jiang (ChenxiJiang333)
approved these changes
Jun 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds test coverage for the Spector cases introduced in #10835, which verify that durations with fractional precision beyond the target integer encoding are serialized as integers (not floats).
test_lossy(sync + async) to both azure and unbrandedtest_encode_durationfiles, coveringint_seconds(36.25s → int32) andint_milliseconds(36250.25ms → int32)@typespec/http-specsto0.1.0-alpha.39-dev.2which includes the lossy duration scenarios