add import audit trail, live indicator recompute, reportes endpoints; production hardening

This commit is contained in:
Roberto Treviño Cervantes
2026-10-30 11:19:30 -06:00
parent 168edb30f5
commit 2b2c290f58
74 changed files with 4095 additions and 1782 deletions
+6 -4
View File
@@ -18,6 +18,11 @@ from reportlab.pdfgen import canvas
from reportlab.platypus import SimpleDocTemplate, Table, TableStyle
def _patients(client) -> dict[str, dict]:
rows = client.get("/data/cacu.Paciente", query_string={"limit": 500}).get_json()["rows"]
return {row["pac_id_hospital"]: row for row in rows}
@pytest.fixture(scope="module")
def client(wire_domain):
wire_domain("cacu")
@@ -166,10 +171,7 @@ def test_pdf_table_round_trip_detect_preview_validate_commit(client):
assert result["target"] == "cacu.Paciente"
assert result["created"] == 2
# this is the first write into cacu.Paciente in this module's temp DB
created = client.get("/cacu/pacientes/1")
assert created.status_code == 200
assert created.get_json()["pac_id_hospital"] == "H-PDF-TAB-1"
assert "H-PDF-TAB-1" in _patients(client)
# ---------------------------------------------------------------------