Python lint: Ruff rule PLW1510 -- subprocess-run-without-check (#794)
This commit is contained in:
parent
10cf0f78a8
commit
073471cdf1
1 changed files with 3 additions and 1 deletions
|
|
@ -44,7 +44,9 @@ def test_command_execution(mock_config_path: Path):
|
||||||
|
|
||||||
test_args = [command] + args + ["--help"]
|
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 result.returncode == 0
|
||||||
assert "usage" in result.stdout.lower()
|
assert "usage" in result.stdout.lower()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue