Comments (5)
Unfortunately, it was fixed only for add_response and still does not work for add_callback. I've proposed a fix -> #61
from pytest_httpx.
Hello @mvbrn , would you mind sharing your code?
This issue seems to be related to httpx (from what you are saying, you bumped httpx from 0.19 to 0.21), are you sure your code works without the mock? ie: does it work in real condition?
Thanks again
from pytest_httpx.
I confirm that I am able to reproduce your issue.
from pytest_httpx.
Fixed in release 0.17.1. Thanks for reporting @mvbrn
from pytest_httpx.
Thanks @mvbrn ,
Release 0.17.2 was performed today with your fix
from pytest_httpx.
Related Issues (20)
- Matching the `Authorization` header correctly while another parameter doesn't match causes a very confusing error message HOT 2
- Do you plan on putting back support for Python 3.8? HOT 5
- Allow to record and store requests+responses HOT 1
- Allow to add responses based on a file content
- How can I test if the request is being proxied? HOT 4
- httpx does not read the response if an event_hook raises an exception HOT 2
- How can I send multiple responses matching the same request? HOT 3
- Custom Async Client's Transport is not used HOT 7
- Ability to fail a test case if unexpected requests are received and code is swallowing exceptions HOT 4
- support for python 3.8 HOT 2
- Switch from setup.py to a build library HOT 1
- pytest_httpx breaks httpx timeout logic HOT 2
- Support for pytest 8.x.x HOT 2
- `HTTPXMock` context manager HOT 3
- Introduce decorators to setup httpx_mock
- support query param matcher
- Allow to match on different kind of timeouts
- Can one add mocked responses *after* creating the HTTPX client? HOT 2
- The following responses are mocked but not requested HOT 5
- How to mock and test request with content passed as byte iterator
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytest_httpx.