La prueba de figuras de TEA recorre todas las figuras de cada indicador

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
This commit is contained in:
2026-10-13 21:56:31 +00:00
parent 830d978a1b
commit 8bc0b06e7b
+2 -3
View File
@@ -52,11 +52,10 @@ def test_listar_indicadores(client):
@pytest.mark.parametrize("indicador", sorted(DEFINICIONES)) @pytest.mark.parametrize("indicador", sorted(DEFINICIONES))
def test_figura_de_cada_indicador(client, indicador): 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.status_code == 200, figura
assert response.mimetype == "application/json" assert response.mimetype == "application/json"
assert "data" in response.get_json() assert "data" in response.get_json()