Python lint: Ruff rule PLW1510 -- subprocess-run-without-check (#794)

This commit is contained in:
Christian Clauss
2025-05-23 17:44:23 +02:00
committed by GitHub
parent 10cf0f78a8
commit 073471cdf1

View File

@@ -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()