-
Notifications
You must be signed in to change notification settings - Fork 376
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
httpbin tests require network access #215
Comments
I see only three tests that fail when I disconnect my internet:
It should be fairly simple to fix these, so I'll take a look at it now. |
test_new_control is using a hardcoded http://httpbin.org URL so it's quite easy to fix. The other two are using a form, I'm not sure how you can reinject the local httpbin URL into it. |
Ah, we can probably replace the URL inside form_html by a {} placeholder and then form_html.format(httpbin.url) |
Fixes MechanicalSoup#215. There were three tests that were still accessing http://httpbin.org. By switching these to use the `httpbin` pytest fixture, we no longer require any network access.
Indeed! Thanks for reporting the issue. |
That branch works for me :) When can we hope to see a new release? |
Closes MechanicalSoup#215. There were three tests that were still accessing http://httpbin.org. By switching these to use the `httpbin` pytest fixture, we no longer require any network access. NOTE: I also checked a different checkbox on the form to reduce line length in order to pass the flake8 tests.
Hi,
It seems that tests require network access. You modified pytest-httpbin to make it connect to the real website instead of the local version, why is that?
The Gentoo sandbox doesn't allow network access so this causes the tests to fail:
Here is the full build.log.
The text was updated successfully, but these errors were encountered: