-
-
Notifications
You must be signed in to change notification settings - Fork 360
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Error Message for failed matches sorts arrays even if not originally sorted #704
Labels
Comments
mgaligniana
added a commit
to mgaligniana/responses
that referenced
this issue
Apr 26, 2024
mgaligniana
added a commit
to mgaligniana/responses
that referenced
this issue
Apr 26, 2024
mgaligniana
added a commit
to mgaligniana/responses
that referenced
this issue
Apr 30, 2024
Delete `_create_key_val_str` which was introduced for the compatibility between python2 (not supported anymore) and python3. Fixes getsentryGH-704
mgaligniana
added a commit
to mgaligniana/responses
that referenced
this issue
Apr 30, 2024
Delete `_create_key_val_str` which was introduced for the compatibility between python2 (not supported anymore) and python3. Fixes getsentryGH-704
mgaligniana
added a commit
to mgaligniana/responses
that referenced
this issue
Apr 30, 2024
Delete `_create_key_val_str` which was introduced for the compatibility between python2 (not supported anymore) and python3. Fixes getsentryGH-704
mgaligniana
added a commit
to mgaligniana/responses
that referenced
this issue
May 1, 2024
Delete `_create_key_val_str` which was introduced for the compatibility between python2 (not supported anymore) and python3. Fixes getsentryGH-704
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Describe the bug
When reporting a failure to match an incoming request with registered responses, arrays in a JSON body appear to be sorted even if they aren't sorted in reality, potentially masking the mismatch that caused the error.
Additional context
No response
Version of
responses
0.24.1
Steps to Reproduce
Expected Result
Responses should throw an error with a message displaying the actual body compared to the registered mock, making the difference between the ordering of the two arrays clear.
Actual Result
Responses' error message appears, but displays both arrays as ['A', 'B', 'C'], making it seem like it should have been a match despite not being accurate to either array's actual state.
NOTE: This auto-sorting also occurs if the arrays DO match, but some other aspect of the json fails the comparison.
The text was updated successfully, but these errors were encountered: