We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c4f759 commit 072278eCopy full SHA for 072278e
tests/test_verify_base_url.py
@@ -1,10 +1,16 @@
1
# This Source Code Form is subject to the terms of the Mozilla Public
2
# License, v. 2.0. If a copy of the MPL was not distributed with this
3
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
4
-
+import pytest
5
from requests.packages.urllib3.util.retry import Retry
6
7
8
+# TODO: Remove this when we remove support for python 2.7
9
+@pytest.fixture(autouse=True)
10
+def httpserver(httpserver):
11
+ return httpserver
12
+
13
14
def test_ignore_bad_url_by_default(testdir, httpserver):
15
testdir.makepyfile("def test_pass(): pass")
16
httpserver.serve_content(content="<h1>Error!</h1>", code=500)
0 commit comments