Deduplicate dependency version pins from backend code/tests
Some checks failed
CICD / Build and Push CICD Images (push) Successful in 37m42s
CICD / Build CICD Image Failure Postmortem (push) Has been skipped
CICD / Dependency Audits (Informational) (push) Successful in 15m24s
CICD / Source Checks (push) Failing after 18m19s
CICD / Build Release Images (push) Has been skipped
CICD / Build Tester Images (push) Has been skipped
CICD / Production Image Failures Postmortem (push) Has been skipped
CICD / Production Images Complete (push) Failing after 11s
CICD / Runtime Black-Box Integration Tests (push) Has been skipped
CICD / End-to-End Tests (push) Has been skipped
CICD / Integration Tests Failure Postmortem (push) Has been skipped
CICD / E2E Tests Failure Postmortem (push) Has been skipped
CICD / Promote Staging Images To Release (push) Has been skipped
CICD / Source Lanes Failure Postmortem (push) Successful in 16s
CICD / CICD Tests Complete (push) Failing after 28s

This commit is contained in:
copilotcoder
2026-07-20 15:16:28 -04:00
parent 4b2c46e1d8
commit fb82e3947d
3 changed files with 69 additions and 19 deletions

View File

@@ -98,15 +98,10 @@ def test_compatibility_status_success(monkeypatch: pytest.MonkeyPatch):
"""Compatibility status should be healthy when all checks match policy."""
monkeypatch.setenv("BACKEND_REQUIRED_PYTHON", "3.14")
required_pins = cast("dict[str, str]", compatibility_status()["required_packages"])
def installed_version(package_name: str) -> str:
versions = {
"fastapi": "0.139.0",
"psycopg": "3.2.12",
"sqlalchemy": "2.0.44",
"uvicorn": "0.51.0",
}
return versions[package_name]
return required_pins[package_name]
monkeypatch.setattr("backend.main._installed_version", installed_version)
status = cast("dict[str, Any]", compatibility_status())