First deployment
Some checks failed
quality-gates / lint-and-test (push) Has been cancelled
quality-gates / security-scan (push) Has been cancelled

This commit is contained in:
2026-02-13 09:14:04 -05:00
parent 0e21e035f5
commit 679561bcdb
128 changed files with 3479 additions and 120 deletions

View File

@@ -0,0 +1,16 @@
import time
def test_security_headers_present(client):
response = client.get("/")
assert response.status_code == 200
assert response.headers.get("x-content-type-options") == "nosniff"
assert "cache-control" in response.headers
def test_api_runtime_budget_smoke(client, seeded_news):
start = time.monotonic()
response = client.get("/api/news?limit=10&language=en")
elapsed = time.monotonic() - start
assert response.status_code == 200
assert elapsed < 0.8