mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
test: birth names (#12226)
* add birth names fixture * fix birth names related tests * fix test_import_v0_dataset_cli_export columns order * fix celery tests drop table * fix mysql datetime type * fix mysql typo in charts/api_tests * refactor * add licence * fix use fixture for presto * fix presto, hive query * fix flaky metadata * fix mysql bigint type * fix run query * fix hive datatype in metadata * fix slice owner for cypress * refactor num_boys num_girls * fix is_dttm column * debug logging * fix query offset * fix presto ds type in metadata * fix presto ds type * clean up debug logging
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
import datetime
|
||||
import json
|
||||
from unittest.mock import MagicMock
|
||||
from tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices
|
||||
|
||||
from sqlalchemy import String, Date, Float
|
||||
|
||||
@@ -184,6 +185,7 @@ class TestCacheWarmUp(SupersetTestCase):
|
||||
}
|
||||
self.assertEqual(result, expected)
|
||||
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
def test_top_n_dashboards_strategy(self):
|
||||
# create a top visited dashboard
|
||||
db.session.query(Log).delete()
|
||||
@@ -204,7 +206,9 @@ class TestCacheWarmUp(SupersetTestCase):
|
||||
db.session.delete(o)
|
||||
db.session.commit()
|
||||
|
||||
@pytest.mark.usefixtures("load_unicode_dashboard_with_slice")
|
||||
@pytest.mark.usefixtures(
|
||||
"load_unicode_dashboard_with_slice", "load_birth_names_dashboard_with_slices"
|
||||
)
|
||||
def test_dashboard_tags(self):
|
||||
tag1 = get_tag("tag1", db.session, TagTypes.custom)
|
||||
# delete first to make test idempotent
|
||||
|
||||
Reference in New Issue
Block a user