def _create_tmp_dirs(self): """Creates the temporal directories where the input/output data is going to be stored. The folders are deleted automatically when the execution finishes. """ self.input_tmp_dir = FileUtils.create_tmp_dir() self.output_tmp_dir = FileUtils.create_tmp_dir() SysUtils.set_env_var("TMP_INPUT_DIR", self.input_tmp_dir.name) SysUtils.set_env_var("TMP_OUTPUT_DIR", self.output_tmp_dir.name)
def test_create_tmp_dir(self, mock_tmp): FileUtils.create_tmp_dir() mock_tmp.assert_called_once()