Full coverage, with exception of URLLib3Transport (#1086)
This commit is contained in:
parent
c089480260
commit
2d491c9e7d
@ -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
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user