mirror of
https://github.com/apache/superset.git
synced 2026-08-12 11:11:01 +00:00
fix(native-filters): ignore unset filter box time range (#16854)
This commit is contained in:
@@ -116,10 +116,6 @@ def test_get_time_filter_status_time_col():
|
||||
def test_get_time_filter_status_time_range():
|
||||
dataset = get_dataset_mock()
|
||||
|
||||
assert get_time_filter_status(
|
||||
dataset, {ExtraFiltersTimeColumnType.TIME_RANGE: NO_TIME_RANGE}
|
||||
) == ([], [])
|
||||
|
||||
assert get_time_filter_status(
|
||||
dataset, {ExtraFiltersTimeColumnType.TIME_RANGE: "1 year ago"}
|
||||
) == ([{"column": ExtraFiltersTimeColumnType.TIME_RANGE}], [])
|
||||
|
||||
Reference in New Issue
Block a user