Ruff check
This commit is contained in:
parent
48f6e1b369
commit
fa9ea77812
1 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,9 @@ def test_validate_command_forbidden():
|
||||||
):
|
):
|
||||||
validate_command(["sudo", "rm", "-rf", "/"])
|
validate_command(["sudo", "rm", "-rf", "/"])
|
||||||
|
|
||||||
with pytest.raises(StitcherValidationError, match="Forbidden element 'sh' detected"):
|
with pytest.raises(
|
||||||
|
StitcherValidationError, match="Forbidden element 'sh' detected"
|
||||||
|
):
|
||||||
validate_command(["sh", "-c", "whoami"])
|
validate_command(["sh", "-c", "whoami"])
|
||||||
|
|
||||||
with pytest.raises(
|
with pytest.raises(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue