add import audit trail, live indicator recompute, reportes endpoints; production hardening
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
# ---------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user