From 8bc0b06e7b4500280190ff3c1eb1c6bfafb98d3f Mon Sep 17 00:00:00 2001 From: rodrigo Date: Tue, 13 Oct 2026 21:56:31 +0000 Subject: [PATCH] La prueba de figuras de TEA recorre todas las figuras de cada indicador MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Una composición de un solo grupo ofrece ahora tres figuras (indicadores_kit: fig_c2_donas y fig_c2_barras además de la apilada). Pruebas: WebApi 139 passed. CSO5.5 --- tests/test_tea.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/test_tea.py b/tests/test_tea.py index c7804d4..1218c5b 100644 --- a/tests/test_tea.py +++ b/tests/test_tea.py @@ -52,13 +52,12 @@ def test_listar_indicadores(client): @pytest.mark.parametrize("indicador", sorted(DEFINICIONES)) def test_figura_de_cada_indicador(client, indicador): - (figura,) = figuras_de(DEFINICIONES[indicador]) + for figura in figuras_de(DEFINICIONES[indicador]): + response = _figura(client, indicador, figura, f"?periodos={PERIODOS}&tema=oscuro") - response = _figura(client, indicador, figura, f"?periodos={PERIODOS}&tema=oscuro") - - assert response.status_code == 200 - assert response.mimetype == "application/json" - assert "data" in response.get_json() + assert response.status_code == 200, figura + assert response.mimetype == "application/json" + assert "data" in response.get_json() def test_figura_sin_periodos_usa_todos_los_reportes(client):