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:
+5
-6
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user