fix(query-object): extra time-range-endpoints (#13331)

Co-authored-by: John Bodley <john.bodley@airbnb.com>
This commit is contained in:
John Bodley
2021-03-03 13:22:07 +13:00
committed by GitHub
parent f2616294e6
commit 694ae6f90e
3 changed files with 11 additions and 11 deletions

View File

@@ -17,13 +17,16 @@
import copy
from typing import Any, Dict, List
from superset.utils.core import AnnotationType, DTTM_ALIAS
from superset.utils.core import AnnotationType, DTTM_ALIAS, TimeRangeEndpoint
from tests.base_tests import get_table_by_name
query_birth_names = {
"extras": {
"where": "",
"time_range_endpoints": ["inclusive", "exclusive"],
"time_range_endpoints": (
TimeRangeEndpoint.INCLUSIVE,
TimeRangeEndpoint.EXCLUSIVE,
),
"time_grain_sqla": "P1D",
},
"groupby": ["name"],