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:
Bogdan
2020-08-10 11:22:38 -07:00
committed by GitHub
parent 8b9292ed05
commit 101e5b670b
5 changed files with 319 additions and 230 deletions

View File

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