docstr: ReportSchedule Api: Test bulk delete report schedules
docstr_tok: ["ReportSchedule","Api",":","Test","bulk","delete","report","schedules"]
code: def test_bulk_delete_report_schedule(self):
      """
      ReportSchedule Api: Test bulk delete report schedules
      """
      query_report_schedules = db.session.query(ReportSchedule)
      report_schedules = query_report_schedules.all()
  
      report_schedules_ids = [
          report_schedule.id for report_schedule in report_schedules
      ]
      self.login(username="admin")
      uri = f"api/v1/report/?q={prison.dumps(report_schedules_ids)}"
      rv = self.delete_assert_metric(uri, "bulk_delete")
      assert rv.status_code == 200
      deleted_report_schedules = query_report_schedules.all()
      assert deleted_report_schedules == []
      response = json.loads(rv.data.decode("utf-8"))
      expected_response = {
          "message": f"Deleted {len(report_schedules_ids)} report schedules"
      }
      assert response == expected_response
  
imports: from datetime import datetime
  import json
  import pytz
  import pytest
  import prison
  from parameterized import parameterized
  from sqlalchemy.sql import func
  from superset import db, security_manager
  from superset.models.core import Database
  from superset.models.slice import Slice
  from superset.models.dashboard import Dashboard
  from superset.reports.models import ReportSchedule, ReportCreationMethod, ReportRecipients, ReportExecutionLog, ReportScheduleType, ReportRecipientType, ReportState
  from superset.utils.database import get_example_database
  from tests.integration_tests.base_tests import SupersetTestCase
  from tests.integration_tests.conftest import with_feature_flags
  from tests.integration_tests.fixtures.birth_names_dashboard import load_birth_names_dashboard_with_slices, load_birth_names_data
  from tests.integration_tests.reports.utils import insert_report_schedule
label_desc: Use image node_id 42 for calling the TestReportSchedulesApi obj's underlying member method code with example usage: obj.test_bulk_delete_report_schedule() without return types