add physical dataset

This commit is contained in:
AAfghahi
2022-11-16 11:27:00 -05:00
parent 55658aa76f
commit 5239ed15db
5 changed files with 177 additions and 8 deletions

View File

@@ -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,
):