Comments (3)
You can easily implement that in your project with a catch-all mock that does not return a response.
from httmock.
Yeah I did that for myself, but it seems like something that would be really nice to have built-in. I can take a crack at it and submit a PR if you're interested in having it in the core.
from httmock.
I would gladly accept a handler that one hase to explicitly include to capture requests being made. Having it on by default would eat lots of memory in setups where many requests are being made.
from httmock.
Related Issues (20)
- Is it possible to mock connection errors? HOT 4
- Travis-CI? HOT 1
- requests.Session.prepare_request require requests > 2.0
- `response` function only treats `dict` as JSON, not `list`.
- Autoserialization should work not only for dicts, but for lists too
- poor documentation HOT 6
- Mocked requests are more permissive with args, causing tests to pass when they should fail HOT 1
- import urllib doesnt work with httmock HOT 1
- Incompatible with origin Response.raw.read
- Breaks under requests 2.11 HOT 3
- Allow content=None when stream=True
- Accessing Content After Calling Close Should Return '' if stream=True
- Response doesn't always receive request's URL
- Add changelog HOT 1
- Python 3.5? HOT 2
- Any way to verify that an interaction happened? HOT 2
- Include tests.py in pypi package
- Session cookies are overwritten
- Support content encodings other than utf-8
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 httmock.