mirror of
https://github.com/headroomlabs-ai/headroom.git
synced 2026-08-27 14:17:10 -04:00
style(tests): order decompression cap imports
This commit is contained in:
parent
f5afe84626
commit
df78777b56
1 changed files with 2 additions and 2 deletions
|
|
@ -279,8 +279,8 @@ except ImportError:
|
|||
@pytest.mark.skipif(not _HAS_FASTAPI, reason="fastapi not installed")
|
||||
def test_compress_endpoint_body_too_large_gzip(monkeypatch):
|
||||
"""A gzip bomb sent to /v1/compress returns the configured status, not 400."""
|
||||
from headroom.proxy.server import ProxyConfig, create_app
|
||||
from headroom.proxy.helpers import get_body_too_large_status
|
||||
from headroom.proxy.server import ProxyConfig, create_app
|
||||
|
||||
config = ProxyConfig(
|
||||
optimize=True,
|
||||
|
|
@ -314,8 +314,8 @@ def test_compress_endpoint_body_too_large_gzip(monkeypatch):
|
|||
@pytest.mark.skipif(not _HAS_FASTAPI, reason="fastapi not installed")
|
||||
def test_compress_bypass_body_too_large_gzip(monkeypatch):
|
||||
"""A gzip bomb sent to /v1/compress with x-headroom-bypass also returns the configured status."""
|
||||
from headroom.proxy.server import ProxyConfig, create_app
|
||||
from headroom.proxy.helpers import get_body_too_large_status
|
||||
from headroom.proxy.server import ProxyConfig, create_app
|
||||
|
||||
config = ProxyConfig(
|
||||
optimize=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue