Skip to content
Myr

Remove some private imports from test_decoders (#2496)

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 71a1589 · Browse files · 1 file+6 added−18 removed
This commit

State

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

Diff stats

1 file+6 added−18 removed

  • tests:+6 added−18 removed

1 file+6 added−18 removed

modified:tests/test_decoders.py+6 added-18 removed
4 unmodified lines
5import pytest67import httpx8from httpx._compat import brotli9from httpx._decoders import (10 BrotliDecoder,11 ByteChunker,12 DeflateDecoder,13 GZipDecoder,14 IdentityDecoder,15 LineDecoder,16 TextChunker,17 TextDecoder,18)9from httpx._decoders import ByteChunker, LineDecoder, TextChunker, TextDecoder101112def test_deflate():13 """
129 unmodified lines
143 )144 assert response.content == b""145146156@pytest.mark.parametrize(157 "decoder", (BrotliDecoder, DeflateDecoder, GZipDecoder, IdentityDecoder)158)159def test_decoders_empty_cases(decoder):160 response = httpx.Response(content=b"", status_code=200)161 instance = decoder()162 assert instance.decode(response.content) == b""163 assert instance.flush() == b""147@pytest.mark.parametrize("header_value", (b"deflate", b"gzip", b"br", b"identity"))148def test_decoders_empty_cases(header_value):149 headers = [(b"Content-Encoding", header_value)]150 response = httpx.Response(content=b"", status_code=200, headers=headers)151 assert response.read() == b""152153154@pytest.mark.parametrize("header_value", (b"deflate", b"gzip", b"br"))155def test_decoding_errors(header_value):
192 unmodified lines