fix(keys): Unsafe dict access in get_native_filters_params() crashes execution (#38272)

This commit is contained in:
Alexandru Soare
2026-03-24 15:43:27 +02:00
committed by GitHub
parent 962abf6904
commit 89d1b80ce7
4 changed files with 157 additions and 34 deletions

View File

@@ -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(