mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +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
@@ -60,7 +60,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.verify_presto_column(presto_column, expected_results)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_get_simple_row_column(self):
|
||||
presto_column = ("column_name", "row(nested_obj double)", "")
|
||||
@@ -68,7 +70,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.verify_presto_column(presto_column, expected_results)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_get_simple_row_column_with_name_containing_whitespace(self):
|
||||
presto_column = ("column name", "row(nested_obj double)", "")
|
||||
@@ -76,7 +80,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.verify_presto_column(presto_column, expected_results)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_get_simple_row_column_with_tricky_nested_field_name(self):
|
||||
presto_column = ("column_name", 'row("Field Name(Tricky, Name)" double)', "")
|
||||
@@ -87,7 +93,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.verify_presto_column(presto_column, expected_results)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_get_simple_array_column(self):
|
||||
presto_column = ("column_name", "array(double)", "")
|
||||
@@ -95,7 +103,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.verify_presto_column(presto_column, expected_results)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_get_row_within_array_within_row_column(self):
|
||||
presto_column = (
|
||||
@@ -112,7 +122,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.verify_presto_column(presto_column, expected_results)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_get_array_within_row_within_array_column(self):
|
||||
presto_column = (
|
||||
@@ -147,7 +159,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.assertEqual(actual_result.name, expected_result["label"])
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_expand_data_with_simple_structural_columns(self):
|
||||
cols = [
|
||||
@@ -182,7 +196,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.assertEqual(actual_expanded_cols, expected_expanded_cols)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_expand_data_with_complex_row_columns(self):
|
||||
cols = [
|
||||
@@ -229,7 +245,9 @@ class PrestoTests(DbEngineSpecTestCase):
|
||||
self.assertEqual(actual_expanded_cols, expected_expanded_cols)
|
||||
|
||||
@mock.patch.dict(
|
||||
"superset._feature_flags", {"PRESTO_EXPAND_DATA": True}, clear=True
|
||||
"superset.extensions.feature_flag_manager._feature_flags",
|
||||
{"PRESTO_EXPAND_DATA": True},
|
||||
clear=True,
|
||||
)
|
||||
def test_presto_expand_data_with_complex_array_columns(self):
|
||||
cols = [
|
||||
|
||||
Reference in New Issue
Block a user