mirror of
https://github.com/aljazceru/mcp-python-sdk.git
synced 2025-12-19 14:54:24 +01:00
Python lint: Ruff rule PLW1510 -- subprocess-run-without-check (#794)
This commit is contained in:
@@ -44,7 +44,9 @@ def test_command_execution(mock_config_path: Path):
|
||||
|
||||
test_args = [command] + args + ["--help"]
|
||||
|
||||
result = subprocess.run(test_args, capture_output=True, text=True, timeout=5)
|
||||
result = subprocess.run(
|
||||
test_args, capture_output=True, text=True, timeout=5, check=False
|
||||
)
|
||||
|
||||
assert result.returncode == 0
|
||||
assert "usage" in result.stdout.lower()
|
||||
|
||||
Reference in New Issue
Block a user