mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +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:
committed by
Ville Brofeldt
parent
8b09414806
commit
0acd2ccaaa
@@ -18,6 +18,7 @@
|
||||
"""Unit tests for Superset"""
|
||||
import json
|
||||
import unittest
|
||||
from tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices
|
||||
|
||||
import pytest
|
||||
from flask import g
|
||||
@@ -240,6 +241,7 @@ class TestImportExport(SupersetTestCase):
|
||||
self.assertEqual(e_slc.datasource.schema, params["schema"])
|
||||
self.assertEqual(e_slc.datasource.database.name, params["database_name"])
|
||||
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
def test_export_1_dashboard(self):
|
||||
self.login("admin")
|
||||
birth_dash = self.get_dash_by_slug("births")
|
||||
@@ -268,6 +270,7 @@ class TestImportExport(SupersetTestCase):
|
||||
self.get_table_by_name("birth_names"), exported_tables[0]
|
||||
)
|
||||
|
||||
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
|
||||
def test_export_2_dashboards(self):
|
||||
self.login("admin")
|
||||
birth_dash = self.get_dash_by_slug("births")
|
||||
|
||||
Reference in New Issue
Block a user