Skip to content
Myr

Full coverage, with exception of URLLib3Transport (#1086)

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

authored by Tom Christie · committed by GitHub · parent c089480 · Browse files · 3 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

3 files+7 added−1 removed

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

3 files+7 added−1 removed

modified:scripts/coverage+1 added-1 removed
6 unmodified lines
7export SOURCE_FILES="httpx tests"89set -x1011${PREFIX}coverage report --show-missing --skip-covered --fail-under=9911${PREFIX}coverage report --omit=httpx/_transports/urllib3.py --show-missing --skip-covered --fail-under=100
modified:tests/client/test_async_client.py+3 added
15 unmodified lines
16 assert response.headers17 assert repr(response) == "<Response [200 OK]>"18 assert response.elapsed > timedelta(seconds=0)1920 with pytest.raises(httpx.NotRedirectResponse):21 await response.anext()222324@pytest.mark.parametrize(25 "url",26 [27 pytest.param("invalid://example.org", id="scheme-not-http(s)"),
141 unmodified lines
modified:tests/client/test_client.py+3 added
19 unmodified lines
20 assert response.is_redirect is False21 assert repr(response) == "<Response [200 OK]>"22 assert response.elapsed > timedelta(0)2324 with pytest.raises(httpx.NotRedirectResponse):25 response.next()262728@pytest.mark.parametrize(29 "url",30 [31 pytest.param("invalid://example.org", id="scheme-not-http(s)"),
165 unmodified lines