From: updatatoday <50987269+updatatoday@users.noreply.github.com> Date: Sun, 23 Jun 2019 10:37:00 +0000 (+0300) Subject: Fixed response repr. (#101) X-Git-Tag: 0.6.3~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9e3ad4c162945a04ecc0f96a2156eca5ab39886;p=thirdparty%2Fhttpx.git Fixed response repr. (#101) * Fixed response repr. * Fixed response repr tests. --- diff --git a/http3/models.py b/http3/models.py index bd3333a1..02fc0ddb 100644 --- a/http3/models.py +++ b/http3/models.py @@ -813,7 +813,7 @@ class BaseResponse: return self._cookies def __repr__(self) -> str: - return f"" + return f"" class AsyncResponse(BaseResponse): diff --git a/tests/client/test_async_client.py b/tests/client/test_async_client.py index 443ca22d..3f5bf53a 100644 --- a/tests/client/test_async_client.py +++ b/tests/client/test_async_client.py @@ -12,7 +12,7 @@ async def test_get(server): assert response.text == "Hello, world!" assert response.protocol == "HTTP/1.1" assert response.headers - assert repr(response) == "" + assert repr(response) == "" @pytest.mark.asyncio diff --git a/tests/client/test_client.py b/tests/client/test_client.py index 4e52c6f8..0ab2c83f 100644 --- a/tests/client/test_client.py +++ b/tests/client/test_client.py @@ -37,7 +37,7 @@ def test_get(server): assert response.request.url == http3.URL(url) assert response.headers assert response.is_redirect is False - assert repr(response) == "" + assert repr(response) == "" @threadpool diff --git a/tests/models/test_responses.py b/tests/models/test_responses.py index 6bff37f6..31aa2310 100644 --- a/tests/models/test_responses.py +++ b/tests/models/test_responses.py @@ -22,7 +22,7 @@ def test_response(): def test_response_repr(): response = http3.Response(200, content=b"Hello, world!") - assert repr(response) == "" + assert repr(response) == "" def test_response_content_type_encoding():