mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
* First cut at app factory * Setting things back to master * Working with new FLASK_APP * Still need to refactor Celery * CLI mostly working * Working on unit tests * Moving cli stuff around a bit * Removing get in config * Defaulting test config * Adding flask-testing * flask-testing casing * resultsbackend property bug * Fixing up cli * Quick fix for KV api * Working on save slice * Fixed core_tests * Fixed utils_tests * Most tests working - still need to dig into remaining app_context issue in tests * All tests passing locally - need to update code comments * Fixing dashboard tests again * Blacking * Sorting imports * linting * removing envvar mangling * blacking * Fixing unit tests * isorting * licensing * fixing mysql tests * fixing cypress? * fixing .flaskenv * fixing test app_ctx * fixing cypress * moving manifest processor around * moving results backend manager around * Cleaning up __init__ a bit more * Addressing PR comments * Addressing PR comments * Blacking * Fixes for running celery worker * Tuning isort * Blacking
This commit is contained in:
committed by
Daniel Vaz Gaspar
parent
300c4ecb0f
commit
e490414484
@@ -14,27 +14,36 @@
|
||||
# KIND, either express or implied. See the License for the
|
||||
# specific language governing permissions and limitations
|
||||
# under the License.
|
||||
from superset import examples
|
||||
from superset.cli import load_test_users_run
|
||||
|
||||
from .base_tests import SupersetTestCase
|
||||
|
||||
|
||||
class SupersetDataFrameTestCase(SupersetTestCase):
|
||||
def __init__(self, *args, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.examples = None
|
||||
|
||||
def setUp(self) -> None:
|
||||
# Late importing here as we need an app context to be pushed...
|
||||
from superset import examples
|
||||
|
||||
self.examples = examples
|
||||
|
||||
def test_load_css_templates(self):
|
||||
examples.load_css_templates()
|
||||
self.examples.load_css_templates()
|
||||
|
||||
def test_load_energy(self):
|
||||
examples.load_energy()
|
||||
self.examples.load_energy()
|
||||
|
||||
def test_load_world_bank_health_n_pop(self):
|
||||
examples.load_world_bank_health_n_pop()
|
||||
self.examples.load_world_bank_health_n_pop()
|
||||
|
||||
def test_load_birth_names(self):
|
||||
examples.load_birth_names()
|
||||
self.examples.load_birth_names()
|
||||
|
||||
def test_load_test_users_run(self):
|
||||
from superset.cli import load_test_users_run
|
||||
|
||||
load_test_users_run()
|
||||
|
||||
def test_load_unicode_test_data(self):
|
||||
examples.load_unicode_test_data()
|
||||
self.examples.load_unicode_test_data()
|
||||
|
||||
Reference in New Issue
Block a user