tests: add non regression test (#40484)

This commit is contained in:
Benjamin Dauvergne 2020-03-06 09:51:48 +01:00
parent 1dbee3c4b3
commit 68e29c7298
1 changed files with 13 additions and 0 deletions

View File

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