Comments (6)
Hi @oschwald, I spent ages trying to debug that problem and eventually gave up moving to httpx
as the main client for testing Mocket.
See #181 and aio-libs/aiohttp#4587
from python-mocket.
Ah, that is too bad. I don't know if it is realistic for us to switch off of aiohttp
, but I suppose we could just avoid using https
in the tests. I initially thought that given the error message, maybe we were not awaiting something.
I did see the 2020 aiohttp
issue while looking into this, but I figured that it was unrelated as it was marked as fixed. I missed the discussion in #181 though. Maybe a warning or something in the docs would help.
from python-mocket.
Definitely not worth it, but for Mocket I really needed a stable client as the main one for testing. That issue was driving me crazy, and it really seemed something only affecting aiohttp
, up to the point when I started considering alternatives, especially after I realised it was plenty of projects hit by the same problem.
from python-mocket.
Thanks to @ento this issue is finally solved. I'll release a new version ASAP.
from python-mocket.
Awesome. Thanks!
from python-mocket.
Here is the new version with the fix:
https://pypi.org/project/mocket/3.12.3/
from python-mocket.
Related Issues (20)
- Cannot inject HTTPX client as pytest fixture HOT 9
- Support for `fastapi`.`TestClient` HOT 36
- [mocket-3.10.x] AttributeError: type object 'Mocket' has no attribute '_address' HOT 7
- Support for asyncpg HOT 2
- Server respond first upon client connect HOT 1
- Question / feature request: using truesocket recording mode for an in-process HTTP server HOT 9
- Does not work with urllib3 >= 2.0.0 HOT 7
- Question: function responses and regex HOT 5
- Add type hints to improve codebase readability and enable static type checking HOT 7
- Feature Request / Question - Mocking with proxies HOT 5
- Errors with aiohttp 3.8.6 HOT 5
- Documentation on direct socket mocking? HOT 4
- Enable pook for newer Python versions HOT 4
- Can't make a mixture of unmocked and mocked HTTPS requests using aiohttp HOT 1
- Can't make an HTTPS request with 'no verify' mode using aiohttp when Mocket is active HOT 1
- "Too many open files" error when making many mocked async requests HOT 1
- Feature request: allow specifying exceptions to strict mode HOT 2
- Establishing connections against multiple hosts can cause true socket connection to get created against the wrong host
- Issue using big response object in Entry with async client HOT 11
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 python-mocket.