### Body

Add unit test for changes in https://github.com/apache/airflow/pull/17305

### Committer

- [X] I acknowledge that I am a maintainer/committer of the Apache Airflow project.
tests/jobs/test_backfill_job.py
"""
        Test that CLI respects -B argument and raises on interaction with depends_on_past
        """
        dag_id = 'test_depends_on_past'
        start_date = DEFAULT_DATE + datetime.timedelta(days=1)
        end_date = start_date + datetime.timedelta(days=1)
        kwargs = dict(
            start_date=start_date,
            end_date=end_date,
        )
        dag = self.dagbag.get_dag(dag_id)
        dag.clear()
        executor = MockExecutor()
        job = BackfillJob(dag=dag, executor=executor, ignore_first_depends_on_past=True, **kwargs)
        job.run()
        ti = TI(dag.get_task('test_dop_task'), end_date)
        ti.refresh_from_db()
        
        assert ti.state == State.SUCCESS
        
        expected_msg = 'You cannot backfill backwards because one or more tasks depend_on_past: {}'.format(
            'test_dop_task'
        )
        with pytest.raises(AirflowException, match=expected_msg):
            executor = MockExecutor()
            job = BackfillJob(dag=dag, executor=executor, run_backwards=True, **kwargs)
            job.run()
    def test_cli_receives_delay_arg(self):