"""
        Test that the dag file processor does not call the sla miss callback when
        given an invalid sla
        """
        session = settings.Session()
        sla_callback = MagicMock()
        
        
        
        test_start_date = timezone.utcnow() - datetime.timedelta(days=1)
        dag, task = create_dummy_dag(
            dag_id="test_sla_miss",
            task_id="dummy",
            sla_miss_callback=sla_callback,
            default_args={"start_date": test_start_date, "sla": None},
        )
        session.merge(TaskInstance(task=task, execution_date=test_start_date, state="success"))
        session.merge(SlaMiss(task_id="dummy", dag_id="test_sla_miss", execution_date=test_start_date))
        dag_file_processor = DagFileProcessor(
            dag_ids=[], dag_directory=TEST_DAGS_FOLDER, log=mock.MagicMock()
        )
        dag_file_processor.manage_slas(dag=dag, session=session)
        sla_callback.assert_not_called()
    def test_dag_file_processor_sla_miss_callback_sent_notification(self, create_dummy_dag):
        """
        Test that the dag file processor does not call the sla_miss_callback when a
        notification has already been sent
        """
        session = settings.Session()