Skip to content
Myr

Fail unit tests without 100% coverage (#206)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Can Sarıgöl · committed by Seth Michael Larson · parent 45177d2 · Browse files · 2 files+7 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+7 added−1 removed

  • tests:+6 added−0 removed
  • other:+1 added−1 removed

2 files+7 added−1 removed

modified:tests/test_utils.py+6 added
48 unmodified lines
4950 os.environ["NETRC"] = "wrongpath"51 assert get_netrc_login("url") is None5253 from httpx import utils5455 utils.NETRC_STATIC_FILES = ()56 os.environ["NETRC"] = ""57 assert utils.get_netrc_login("url") is None585960def test_get_netrc_login():61 os.environ["NETRC"] = "tests/.netrc"62 assert get_netrc_login("netrcexample.org") == (63 "example-username",
3 unmodified lines
modified:setup.cfg+1 added-1 removed
14 unmodified lines
15line_length = 8816multi_line_output = 31718[tool:pytest]19addopts = --cov=httpx --cov=tests --cov-report=term-missing19addopts = --cov=httpx --cov=tests --cov-report=term-missing --cov-fail-under=100