From 46c66406dfc56b5c7b6fe50a2d4292005737be68 Mon Sep 17 00:00:00 2001 From: edgar Date: Thu, 15 Oct 2026 22:23:39 +0000 Subject: [PATCH] =?UTF-8?q?TEA:=20indicadores=20destacados=20(M23=E2=80=93?= =?UTF-8?q?M25),=20ocultar=20indicadores=20y=20renombrar=20a=20pacientes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/test_tea.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/tests/test_tea.py b/tests/test_tea.py index f52a1d6..4189505 100644 --- a/tests/test_tea.py +++ b/tests/test_tea.py @@ -52,14 +52,19 @@ def test_listar_indicadores(client): def test_los_ocultos_no_salen_en_el_catalogo_pero_responden(client): - """Provisional (oct 2026): K01, K08, M04 y M15 no se muestran; quedan 16 en el catálogo.""" - ocultos = {"K01_evaluacion_3_meses", "K08_eeg_sueno", "M04_dias_entrevista_ados2", "M15_grado_hipoacusia"} + """Provisional (oct 2026): solo se muestran M21, M22 y los tres destacados (M23 a M25).""" + visibles = { + "M21_diagnosticados_con_eeg", + "M22_diagnosticados_sin_eeg", + "M23_pacientes_evaluados", + "M24_confirmacion_diagnostico", + "M25_dias_mchat_diagnostico", + } ids = {fila["id"] for fila in client.get("/tea/indicadores").get_json()} - assert len(ids) == 16 - assert not ids & ocultos - assert {"M21_diagnosticados_con_eeg", "M22_diagnosticados_sin_eeg"} <= ids - assert client.get("/tea/indicadores/K01_evaluacion_3_meses/metadatos").status_code == 200 + assert ids == visibles + for oculto in sorted(set(DEFINICIONES) - visibles): + assert client.get(f"/tea/indicadores/{oculto}/metadatos").status_code == 200 @pytest.mark.parametrize("indicador", sorted(DEFINICIONES))