mirror of
https://github.com/apache/superset.git
synced 2026-05-10 10:25:51 +00:00
add physical dataset
This commit is contained in:
@@ -995,12 +995,12 @@ def physical_query_context(physical_dataset) -> Dict[str, Any]:
|
||||
},
|
||||
},
|
||||
)
|
||||
def test_cache_default_timeout(login_as_admin, physical_query_context):
|
||||
def test_cache_default_timeout(test_client, login_as_admin, physical_query_context):
|
||||
rv = test_client.post(CHART_DATA_URI, json=physical_query_context)
|
||||
assert rv.json["result"][0]["cache_timeout"] == 1234
|
||||
|
||||
|
||||
def test_custom_cache_timeout(login_as_admin, physical_query_context):
|
||||
def test_custom_cache_timeout(test_client, login_as_admin, physical_query_context):
|
||||
physical_query_context["custom_cache_timeout"] = 5678
|
||||
rv = test_client.post(CHART_DATA_URI, json=physical_query_context)
|
||||
assert rv.json["result"][0]["cache_timeout"] == 5678
|
||||
@@ -1018,6 +1018,7 @@ def test_custom_cache_timeout(login_as_admin, physical_query_context):
|
||||
},
|
||||
)
|
||||
def test_data_cache_default_timeout(
|
||||
test_client,
|
||||
login_as_admin,
|
||||
physical_query_context,
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user