-
Notifications
You must be signed in to change notification settings - Fork 10
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
Requests that fail are not detected #1
Comments
As the test will almost certainly fail for a different reason, is this really an issue? attempts to start http is caught. |
I don't entirely remember the case which led me to open this, but I remember that the test was still passing. Maybe the failure was expected? Or it wasn't under test, so not asserted on? |
expected failures always run that risk of not verifying the desired failure, but instead verifying that some unexpected failure occurred ;-) Was it definitely a DNS lookup which sparked this issue? To play devils advocate again: If it performed a DNS lookup (successful or not), why is that within scope of this plugin whereas other types of failure within a http library (valueerrors, out of memory, disk cache, etc) would not be within scope. If someones goal is to detect/prevent any network activity, https://github.com/ustudio/nose_connection_report/ looks like a more reliable 'approach'. |
Yeah, it was a dns issue. I'd imagine that alternate schemes would cause a similar failure, but I'm not sure.
Neat, I wasn't aware of that project. I think our goals are the same, but our solutions have different tradeoffs: detecthttp will give better performance at the cost of potential false negatives. |
...because currently we check for recorded responses and vcr.py will not record a response for requests that fail eg during the dns lookup.
The text was updated successfully, but these errors were encountered: