processor = DagFileProcessorProcess(
            file_path="abc.txt",
            pickle_dags=False,
            dag_ids=[],
            dag_directory=[],
            callback_requests=[],
        )
        processor._run_file_processor(
            result_channel=MagicMock(),
            parent_channel=MagicMock(),
            file_path="fake_file_path",
            pickle_dags=False,
            dag_ids=[],
            thread_name="fake_thread_name",
            callback_requests=[],
            dag_directory=[],
        )
        mock_redirect_stdout_for_file.assert_called_once()
class TestProcessorAgent: