def METHOD_NAME(
    mocker: MockFixture, app_context: None
) -> None:
    from superset.reports.commands.alert import AlertCommand, AlertQueryError
    execute_query_mock = mocker.patch(
        "superset.reports.commands.alert.AlertCommand._execute_query"
    )
    def _mocked_execute_query() -> None:
        raise AlertQueryError
    execute_query_mock.side_effect = _mocked_execute_query
    execute_query_mock.__name__ = "mocked_execute_query"
    command = AlertCommand(report_schedule=mocker.Mock())
    with suppress(AlertQueryError):
        command.validate()
    # Should match the value defined in superset_test_config.py
    assert execute_query_mock.call_count == 3