mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
chore: clean up csv tests (#10556)
* Clean up csv tests * Update tests/base_tests.py Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com> * Update tests/base_tests.py Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com> * import optional * Fix mypy error Co-authored-by: bogdan kyryliuk <bogdankyryliuk@dropbox.com> Co-authored-by: Ville Brofeldt <33317356+villebro@users.noreply.github.com>
This commit is contained in:
@@ -1029,6 +1029,10 @@ def get_main_database() -> "Database":
|
||||
return get_or_create_db("main", db_uri)
|
||||
|
||||
|
||||
def backend() -> str:
|
||||
return get_example_database().backend
|
||||
|
||||
|
||||
def is_adhoc_metric(metric: Metric) -> bool:
|
||||
return bool(
|
||||
isinstance(metric, dict)
|
||||
|
||||
Reference in New Issue
Block a user