mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +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:
@@ -234,7 +234,8 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
assert len(dataset.metrics) == 2
|
||||
assert dataset.main_dttm_col == "ds"
|
||||
assert dataset.filter_select_enabled
|
||||
assert [col.column_name for col in dataset.columns] == [
|
||||
dataset.columns.sort(key=lambda obj: obj.column_name)
|
||||
expected_columns = [
|
||||
"num_california",
|
||||
"ds",
|
||||
"state",
|
||||
@@ -244,6 +245,8 @@ class TestImportDatasetsCommand(SupersetTestCase):
|
||||
"num_girls",
|
||||
"num",
|
||||
]
|
||||
expected_columns.sort()
|
||||
assert [col.column_name for col in dataset.columns] == expected_columns
|
||||
|
||||
db.session.delete(dataset)
|
||||
db.session.commit()
|
||||
|
||||
Reference in New Issue
Block a user