diff --git a/tests/test_indicadores_f4b2.py b/tests/test_indicadores_f4b2.py index 092b907..03fd8e4 100644 --- a/tests/test_indicadores_f4b2.py +++ b/tests/test_indicadores_f4b2.py @@ -11,10 +11,12 @@ def client(tmp_path_factory): def test_catalogo_publica_las_dos_medidas(client): + """Keep C1/C3r publication while titles remain suitable for the interface.""" catalogo = {item["id"]: item for item in client.get("/cama/indicadores").get_json()} for identificador, contrato in IDS.items(): assert catalogo[identificador]["contrato"] == contrato - assert "sintética" in catalogo[identificador]["titulo"] + assert "demostración" not in catalogo[identificador]["titulo"] + assert "sintética" not in catalogo[identificador]["titulo"] assert set(catalogo[identificador]["tipos_periodo"]) == {"mes", "semestre"} diff --git a/tests/test_indicadores_f4b3.py b/tests/test_indicadores_f4b3.py index 28498b3..49d87b6 100644 --- a/tests/test_indicadores_f4b3.py +++ b/tests/test_indicadores_f4b3.py @@ -56,6 +56,9 @@ def publicaciones(tmp_path_factory): for historico in historicos: assert cliente.get(f"/cama/indicadores/{historico}/datos?periodos=2025-S1").status_code == 200 assert cliente.get(RAIZ + "/metadatos").status_code == 200 + assert next(i for i in catalogo if i['id'] == ID)['titulo'] == 'Histopatología por BI-RADS' + assert matriz.get_json()['titulo'] == 'Histopatología por BI-RADS' + assert 'datos sintéticos' not in matriz.get_json()['notas'][0] assert cliente.get(RAIZ + "/periodos").status_code == 200 assert cliente.get(RAIZ + "/datos?periodos=2025-02&estrato=birads").status_code == 200 figura = cliente.get(RAIZ + "/figuras/fig_c2_donas?periodos=2025-S1")