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}]}]