mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
fix(keys): Unsafe dict access in get_native_filters_params() crashes execution (#38272)
This commit is contained in:
@@ -290,6 +290,10 @@ def test_get_dashboard_urls_with_multiple_tabs(
|
||||
"urlParams": None,
|
||||
}
|
||||
}
|
||||
mock_report_schedule.get_native_filters_params.return_value = ( # type: ignore
|
||||
"()",
|
||||
[],
|
||||
)
|
||||
|
||||
class_instance: BaseReportState = BaseReportState(
|
||||
mock_report_schedule, "January 1, 2021", "execution_id_example"
|
||||
@@ -333,6 +337,10 @@ def test_get_dashboard_urls_with_exporting_dashboard_only(
|
||||
"urlParams": None,
|
||||
}
|
||||
}
|
||||
mock_report_schedule.get_native_filters_params.return_value = ( # type: ignore
|
||||
"()",
|
||||
[],
|
||||
)
|
||||
mock_run.return_value = "url1"
|
||||
|
||||
class_instance: BaseReportState = BaseReportState(
|
||||
|
||||
Reference in New Issue
Block a user