From 68e29c7298961a5bfa39f812d28786bad89da372 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 Mar 2020 09:51:48 +0100 Subject: [PATCH] tests: add non regression test (#40484) --- tests/test_schema1.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/test_schema1.py b/tests/test_schema1.py index 14caed9..0d14faa 100644 --- a/tests/test_schema1.py +++ b/tests/test_schema1.py @@ -322,3 +322,16 @@ def test_geoloc(schema1, app, admin): } ] + +def test_filter_type_mismatch(schema1, app, admin): + # test conversion to Javascript declaration + visu = Visualization.from_json({ + 'warehouse': 'schema1', + 'cube': 'facts1', + 'representation': 'graphical', + 'measure': 'simple_count', + 'filters': { + 'string': [1], + } + }) + assert visu.json_data() == [{'coords': [], 'measures': [{'value': 17}]}]