-
Notifications
You must be signed in to change notification settings - Fork 42
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
Data pattern matching for lists broken between 0.20.2 and 0.21.1 #263
Comments
You're right, this looks like a bug .. looking in to it |
@alex-young please try #264 with your code, if possible. Thanks. |
I dunno if this is related, but there's another issue with If you add a Steps to reproduce: import httpx
import pytest
@pytest.mark.respx(assert_all_called=True, assert_all_mocked=True)
def test_respx_httpx_bug(
respx_mock,
) -> None:
respx_mock.post(
"https://domain.com/test",
data={
"customer": "1",
"boolean_value": True,
},
).mock(return_value=httpx.Response(200, json={"id": "123456"}))
response = httpx.post(
"https://domain.com/test",
data={
"customer": "1",
"boolean_value": True,
},
) I noticed |
Using httpx==0.25.1
Test case:
In 0.20.2 this test passes as expected. In 0.21.1 it fails with a
AllMockedAssertionError
The text was updated successfully, but these errors were encountered: