From 4b9512136ae70eefe7e10994916fa115bd14ae84 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Tue, 1 Oct 2019 13:33:33 +0200 Subject: [PATCH] show cube warnings (#36576) --- bijoe/templates/bijoe/cube.html | 9 +++++++++ tests/test_schema1.py | 2 ++ 2 files changed, 11 insertions(+) diff --git a/bijoe/templates/bijoe/cube.html b/bijoe/templates/bijoe/cube.html index c91ce0c..b0b7845 100644 --- a/bijoe/templates/bijoe/cube.html +++ b/bijoe/templates/bijoe/cube.html @@ -46,6 +46,15 @@ {% endblock %} + {% if cube.warnings %} + {% block warnings %} + + {% endblock %} + {% endif %}
{% if visualization %} {% if visualization.representation == 'table' %} diff --git a/tests/test_schema1.py b/tests/test_schema1.py index 5788034..129cd90 100644 --- a/tests/test_schema1.py +++ b/tests/test_schema1.py @@ -14,6 +14,8 @@ def test_simple(schema1, app, admin): response = app.get('/').follow() response = response.click('Facts 1') assert 'big-msg-info' in response + assert u'le champ « pouët »' in response + assert 'warning2' in response form = response.form form.set('representation', 'table') form.set('measure', 'simple_count') -- 2.24.0