Skip to content

Commit 75691ad

Browse files
authored
Merge pull request #4 from star7js/pixeebot/drip-2025-07-09-pixee-python/sandbox-process-creation
Sandbox Process Creation
2 parents d9c7605 + fb9d1df commit 75691ad

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ dependencies = [
4040
"python-dotenv>=1.0.0",
4141
"click>=8.0.0",
4242
"pydantic>=2.0.0",
43+
"security==1.3.1",
4344
]
4445

4546
[project.optional-dependencies]
@@ -142,4 +143,4 @@ exclude_lines = [
142143
"if __name__ == .__main__.:",
143144
"class .*\\bProtocol\\):",
144145
"@(abc\\.)?abstractmethod",
145-
]
146+
]

run_tests.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66
import subprocess
77
import sys
88
import os
9+
from security import safe_command
910

1011
def run_tests():
1112
"""Run tests using subprocess to avoid PyO3 issues."""
1213
print("Running tests to avoid PyO3 import issues...")
1314

1415
# Run basic functionality test first
1516
print("\n1. Running basic functionality test...")
16-
result1 = subprocess.run([sys.executable, "test_basic_functionality.py"],
17+
result1 = safe_command.run(subprocess.run, [sys.executable, "test_basic_functionality.py"],
1718
capture_output=True, text=True)
1819

1920
if result1.returncode == 0:
@@ -25,7 +26,7 @@ def run_tests():
2526

2627
# Run improved modules tests
2728
print("\n2. Running improved modules tests...")
28-
result2 = subprocess.run([sys.executable, "-m", "pytest",
29+
result2 = safe_command.run(subprocess.run, [sys.executable, "-m", "pytest",
2930
"tests/test_improved_modules.py", "-v"],
3031
capture_output=True, text=True)
3132

@@ -38,7 +39,7 @@ def run_tests():
3839

3940
# Run multi-issue tests
4041
print("\n3. Running multi-issue tests...")
41-
result3 = subprocess.run([sys.executable, "-m", "pytest",
42+
result3 = safe_command.run(subprocess.run, [sys.executable, "-m", "pytest",
4243
"tests/test_multi_issue_upload_with_subtasks.py", "-v"],
4344
capture_output=True, text=True)
4445

@@ -66,4 +67,4 @@ def run_tests():
6667
return 1
6768

6869
if __name__ == "__main__":
69-
sys.exit(run_tests())
70+
sys.exit(run_tests())

0 commit comments

Comments
 (0)