Revert "refactor(feature_flags configurations): remove redundant additional configuration for default vales (#15425)" (#15448)

This commit is contained in:
Ville Brofeldt
2021-06-29 16:52:01 +03:00
committed by GitHub
parent dd407331a6
commit ab7f31fd85
5 changed files with 21 additions and 12 deletions

View File

@@ -82,7 +82,7 @@ def test_export_datasources_original(app_context, fs):
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
@mock.patch.dict(
"superset.config.FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
"superset.config.DEFAULT_FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
)
def test_export_dashboards_versioned_export(app_context, fs):
"""
@@ -107,7 +107,7 @@ def test_export_dashboards_versioned_export(app_context, fs):
@pytest.mark.usefixtures("load_birth_names_dashboard_with_slices")
@mock.patch.dict(
"superset.config.FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
"superset.config.DEFAULT_FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
)
def test_export_datasources_versioned_export(app_context, fs):
"""
@@ -131,7 +131,7 @@ def test_export_datasources_versioned_export(app_context, fs):
@mock.patch.dict(
"superset.config.FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
"superset.config.DEFAULT_FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
)
@mock.patch("superset.dashboards.commands.importers.dispatcher.ImportDashboardsCommand")
def test_import_dashboards_versioned_export(import_dashboards_command, app_context, fs):
@@ -170,7 +170,7 @@ def test_import_dashboards_versioned_export(import_dashboards_command, app_conte
@mock.patch.dict(
"superset.config.FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
"superset.config.DEFAULT_FEATURE_FLAGS", {"VERSIONED_EXPORT": True}, clear=True
)
@mock.patch("superset.datasets.commands.importers.dispatcher.ImportDatasetsCommand")
def test_import_datasets_versioned_export(import_datasets_command, app_context, fs):