tests: add non regression test (#40482)

This commit is contained in:
Benjamin Dauvergne 2020-03-06 09:47:09 +01:00
parent 3e380e43cf
commit 77447ed8dd
1 changed files with 13 additions and 0 deletions

View File

@ -335,3 +335,16 @@ def test_filter_type_mismatch(schema1, app, admin):
}
})
assert visu.json_data() == [{'coords': [], 'measures': [{'value': 17}]}]
def test_empty_filter(schema1, app, admin):
visu = Visualization.from_json({
'warehouse': 'schema1',
'cube': 'facts1',
'representation': 'graphical',
'measure': 'simple_count',
'filters': {
'innercategory': [],
}
})
assert visu.json_data() == [{'coords': [], 'measures': [{'value': 17}]}]