Skip to content
Myr

Fixed mypy errors in test_async_client.py and test_client.py (#985)

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

authored by Hasan Ramezani · committed by GitHub · parent f5e1aa5 · Browse files · 2 files+2 added−2 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+2 added−2 removed

  • tests:+2 added−2 removed

2 files+2 added−2 removed

modified:tests/client/test_async_client.py+1 added-1 removed
93 unmodified lines
94 with pytest.raises(httpx.HTTPError) as exc_info:95 response.raise_for_status()96 assert exc_info.value.response == response97 else:98 assert response.raise_for_status() is None98 assert response.raise_for_status() is None # type: ignore99100101@pytest.mark.usefixtures("async_environment")102async def test_options(server):
48 unmodified lines
modified:tests/client/test_client.py+1 added-1 removed
108 unmodified lines
109 with pytest.raises(httpx.HTTPError) as exc_info:110 response.raise_for_status()111 assert exc_info.value.response == response112 else:113 assert response.raise_for_status() is None113 assert response.raise_for_status() is None # type: ignore114115116def test_options(server):117 with httpx.Client() as client:
47 unmodified lines