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 45177d2 commit 9536b76Copy full SHA for 9536b76
2 files changed
setup.cfg
@@ -16,4 +16,4 @@ line_length = 88
16
multi_line_output = 3
17
18
[tool:pytest]
19
-addopts = --cov=httpx --cov=tests --cov-report=term-missing
+addopts = --cov=httpx --cov=tests --cov-report=term-missing --cov-fail-under=100
tests/test_utils.py
@@ -50,6 +50,12 @@ def test_bad_get_netrc_login():
50
os.environ["NETRC"] = "wrongpath"
51
assert get_netrc_login("url") is None
52
53
+ from httpx import utils
54
+
55
+ utils.NETRC_STATIC_FILES = ()
56
+ os.environ["NETRC"] = ""
57
+ assert utils.get_netrc_login("url") is None
58
59
60
def test_get_netrc_login():
61
os.environ["NETRC"] = "tests/.netrc"
0 commit comments