Skip to content

Commit

Permalink
Update test_executor.py for new path
Browse files Browse the repository at this point in the history
  • Loading branch information
djps authored Oct 22, 2024
1 parent 65f386a commit 9d6cd52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9d6cd52

Please sign in to comment.