From 3173800f735c17d31e4511671eb972808fdc5eb4 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..6ddd21a 100644 --- a/bijoe/templates/bijoe/cube.html +++ b/bijoe/templates/bijoe/cube.html @@ -45,6 +45,15 @@ {% block buttons %} {% endblock %} + {% if cube.warnings %} + {% block warnings %} + + {% endblock %} + {% endif %}
{% if visualization %} diff --git a/tests/test_schema1.py b/tests/test_schema1.py index 5ef27e4..4cc05a4 100644 --- a/tests/test_schema1.py +++ b/tests/test_schema1.py @@ -13,6 +13,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