Add a flake8 extension to tests to detect commented out code.

This commit is contained in:
Dan Helfman
2025-06-30 21:42:38 -07:00
parent 1a33e5fa1e
commit 3eed3191e8
2 changed files with 1 additions and 1 deletions
+1
View File
@@ -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