From ac85a02c6dd9b3e771b9f76500c16ef83d0eb617 Mon Sep 17 00:00:00 2001 From: Jack Fragassi Date: Wed, 8 Sep 2021 16:13:34 -0700 Subject: [PATCH] Fix mock --- tests/integration_tests/reports/scheduler_tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration_tests/reports/scheduler_tests.py b/tests/integration_tests/reports/scheduler_tests.py index f6c915f90d05b..77894a6d2ef3c 100644 --- a/tests/integration_tests/reports/scheduler_tests.py +++ b/tests/integration_tests/reports/scheduler_tests.py @@ -117,14 +117,14 @@ def test_scheduler_celery_no_timeout_utc(execute_mock): app.config["ALERT_REPORTS_WORKING_TIME_OUT_KILL"] = True -@patch("superset.extensions.feature_flag_manager.is_feature_enabled") +@patch("superset.tasks.scheduler.is_feature_enabled") @patch("superset.tasks.scheduler.execute.apply_async") def test_scheduler_feature_flag_off(execute_mock, is_feature_enabled): """ Reports scheduler: Test scheduler with feature flag off """ - is_feature_enabled("ALERT_REPORTS").return_value = False with app.app_context(): + is_feature_enabled.return_value = False report_schedule = insert_report_schedule( type=ReportScheduleType.ALERT, name="report",