"""
        Test that when a processor already exist with a filepath, a new processor won't be created
        with that filepath. The filepath will just be removed from the list.
        """
        manager = DagFileProcessorManager(
            dag_directory="directory",
            max_runs=1,
            processor_timeout=timedelta(days=365),
            signal_conn=MagicMock(),
            dag_ids=[],
            pickle_dags=False,
            async_mode=True,
        )
        file_1 = "file_1.py"
        file_2 = "file_2.py"
        file_3 = "file_3.py"
        manager._file_path_queue = collections.deque([file_1, file_2, file_3])
        
        manager._processors[file_1] = MagicMock()
        
        manager.start_new_processes()
        
        
        
        
        
        assert file_1 in manager._processors.keys()
        assert file_2 in manager._processors.keys()
        assert collections.deque([file_3]) == manager._file_path_queue
    def test_set_file_paths_when_processor_file_path_not_in_new_file_paths(self):