Full coverage, with exception of URLLib3Transport (#1086)

This commit is contained in:
Tom Christie 2020-07-24 15:24:06 +01:00 committed by GitHub
parent c089480260
commit 2d491c9e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View File

@ -8,4 +8,4 @@ export SOURCE_FILES="httpx tests"
set -x
${PREFIX}coverage report --show-missing --skip-covered --fail-under=99
${PREFIX}coverage report --omit=httpx/_transports/urllib3.py --show-missing --skip-covered --fail-under=100

View File

@ -17,6 +17,9 @@ async def test_get(server):
assert repr(response) == "<Response [200 OK]>"
assert response.elapsed > timedelta(seconds=0)
with pytest.raises(httpx.NotRedirectResponse):
await response.anext()
@pytest.mark.parametrize(
"url",

View File

@ -21,6 +21,9 @@ def test_get(server):
assert repr(response) == "<Response [200 OK]>"
assert response.elapsed > timedelta(0)
with pytest.raises(httpx.NotRedirectResponse):
response.next()
@pytest.mark.parametrize(
"url",