-
Notifications
You must be signed in to change notification settings - Fork 44
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
None type doesn't work in data matching as of v0.21.0 #258
Comments
Thanks, hopefully a simple fix |
@slingshotvfx please try #259 and see if it solves your issue |
Not sure if it's related but I also encounter issues when I run (as a @respx.mock
def test_file_upload(self):
FILE_DATA = {
"upload": ("image/png", io.BytesIO(b"some image content"), "image/png")
}
respx.patch("https://api.example.com/endpoint/123", files=FILE_DATA)
httpx.patch("https://api.example.com/endpoint/123", files=FILE_DATA) This raises: raise AllMockedAssertionError(f"RESPX: {request!r} not mocked!")
respx.models.AllMockedAssertionError: RESPX: <Request('PATCH', 'https://api.example.com/endpoint/123')> not mocked! |
@pierremonico this is not related and is certainly a bug in the new Please open a new issue with your test example. My bet is that the pattern doesn't handle |
As of the latest version
v0.21.0
, None values in data lookups don't work:output:
This test passes successfully in
v0.20.2
The following do work:
So there's just a bug somewhere translating None to ""
The text was updated successfully, but these errors were encountered: