Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions e2e/test_run_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,16 @@ def test_run_command_with_args(project_dir):
f.write("test content")

result = subprocess.run(
[sys.executable, "-m", "codemcp", "run", "list", test_file, "--path", project_dir],
[
sys.executable,
"-m",
"codemcp",
"run",
"list",
test_file,
"--path",
project_dir,
],
capture_output=True,
text=True,
check=True,
Expand All @@ -72,7 +81,15 @@ def test_run_command_error_exit_code(project_dir):
"""Test that error exit codes from the command are propagated."""
# This should return a non-zero exit code
process = subprocess.run(
[sys.executable, "-m", "codemcp", "run", "exit_with_error", "--path", project_dir],
[
sys.executable,
"-m",
"codemcp",
"run",
"exit_with_error",
"--path",
project_dir,
],
capture_output=True,
text=True,
check=False,
Expand Down