mirror of
https://github.com/borgmatic-collective/borgmatic.git
synced 2026-08-06 16:23:00 +02:00
Add a flake8 extension to tests to detect commented out code.
This commit is contained in:
@@ -10,6 +10,7 @@ codespell==2.4.1
|
||||
coverage==7.9.1
|
||||
flake8==7.3.0
|
||||
flake8-bandit==4.1.1
|
||||
flake8-eradicate==1.5.0
|
||||
flake8-quotes==3.4.0
|
||||
flake8-use-fstring==1.4
|
||||
flake8-variables-names==0.0.6
|
||||
|
||||
@@ -809,7 +809,6 @@ def test_build_restore_command_prevents_shell_injection():
|
||||
extract_process, database, config, dump_filename, connection_params
|
||||
)
|
||||
|
||||
# print(command)
|
||||
# Ensure the malicious input is properly escaped and does not execute
|
||||
assert 'rm -rf /' not in command
|
||||
assert ';' not in command
|
||||
|
||||
Reference in New Issue
Block a user