mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-05 00:02:38 -04:00
added test
This commit is contained in:
parent
6e41543336
commit
815a1177d6
@ -59,6 +59,13 @@ module Requests
|
||||
assert body["data"].bytesize < 8012, "body hasn't been compressed"
|
||||
end
|
||||
|
||||
def test_plugin_compression_brotli
|
||||
client = HTTPX.plugin(:"compression/brotli")
|
||||
response = client.get("http://httpbin.org/brotli")
|
||||
verify_status(response.status, 200)
|
||||
body = json_body(response)
|
||||
assert body["brotli"], "response should be deflated"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user