diff --git a/tests/test_executor.py b/tests/test_executor.py index b6d4d677..0b738920 100644 --- a/tests/test_executor.py +++ b/tests/test_executor.py @@ -99,7 +99,7 @@ def test_run_simulation_success(self): sensor_data = executor.run_simulation("input.h5", "output.h5", "options") normalized_path = os.path.normpath(self.execution_options.binary_path) - expected_command = f"{self.execution_options.system_string} " f"{normalized_path} " f"-i input.h5 " f"-o output.h5 " f"options" + expected_command = f"{self.execution_options.system_string} " f'"{normalized_path}"' f"-i input.h5 " f"-o output.h5 " f"options" self.mock_popen.assert_called_once_with(expected_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True, text=True) self.mock_proc.communicate.assert_called_once()