chore: update fixtures scope that are loading data into the analytical db (#17780)

* Update db setup fixture scope

* Load data into db only once

* Update fixture scopes for data loading

* cleanup imports

* try import

* Update scope

* fix cleanup

* Import all fixtures

* Separate data log and metadata creation

* Retain table description

* fix dtype

Co-authored-by: Bogdan Kyryliuk <bogdankyryliuk@dropbox.com>
This commit is contained in:
Bogdan
2021-12-16 16:11:47 -08:00
committed by GitHub
parent d9acb280c4
commit afd2e9f2ca
43 changed files with 247 additions and 138 deletions

View File

@@ -20,6 +20,7 @@ import json
import unittest
from tests.integration_tests.fixtures.birth_names_dashboard import (
load_birth_names_dashboard_with_slices,
load_birth_names_data,
)
import pytest
@@ -28,6 +29,7 @@ from sqlalchemy.orm.session import make_transient
from tests.integration_tests.fixtures.energy_dashboard import (
load_energy_table_with_slice,
load_energy_table_data,
)
from tests.integration_tests.test_app import app
from superset.dashboards.commands.importers.v0 import decode_dashboards
@@ -47,6 +49,7 @@ from superset.utils.core import get_example_database, get_example_default_schema
from tests.integration_tests.fixtures.world_bank_dashboard import (
load_world_bank_dashboard_with_slices,
load_world_bank_data,
)
from .base_tests import SupersetTestCase