Projet

Général

Profil

0001-show-cube-warnings-36576.patch

Benjamin Dauvergne, 23 janvier 2020 10:53

Télécharger (1,6 ko)

Voir les différences:

Subject: [PATCH] show cube warnings (#36576)

 bijoe/templates/bijoe/cube.html | 9 +++++++++
 tests/test_schema1.py           | 2 ++
 2 files changed, 11 insertions(+)
bijoe/templates/bijoe/cube.html
46 46
      <input type="submit" name="visualize" value="{% trans "Visualiser" %}">
47 47
    {% endblock %}
48 48
  </form>
49
  {% if cube.warnings %}
50
     {% block warnings %}
51
        <ul class="messages cube-warnings">
52
            {% for message in cube.warnings %}
53
                <li class="warning">{{ message }}</li>
54
            {% endfor %}
55
        </ul>
56
     {% endblock %}
57
  {% endif %}
49 58
  <div id="data" {% if visualization %}class="visualization-{{visualization.representation}}"{% endif %}>
50 59
  {% if visualization %}
51 60
    {% if visualization.representation == 'table' %}
tests/test_schema1.py
14 14
    response = app.get('/').follow()
15 15
    response = response.click('Facts 1')
16 16
    assert 'big-msg-info' in response
17
    assert u'le champ « pouët »' in response
18
    assert 'warning2' in response
17 19
    form = response.form
18 20
    form.set('representation', 'table')
19 21
    form.set('measure', 'simple_count')
20
-