Add basic auth

This commit is contained in:
Jack Kingsman
2026-03-11 10:01:57 -07:00
parent fa1c086f5f
commit 528a94d2bd
11 changed files with 356 additions and 7 deletions
+13
View File
@@ -0,0 +1,13 @@
"""Tests for direct-serve HTTP quality features such as gzip compression."""
from fastapi.testclient import TestClient
from app.main import app
def test_openapi_json_is_gzipped_when_client_accepts_gzip():
with TestClient(app) as client:
response = client.get("/openapi.json", headers={"Accept-Encoding": "gzip"})
assert response.status_code == 200
assert response.headers["content-encoding"] == "gzip"