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
commit 073471cdf1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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