subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
if not (repo_path / "pytest.ini").exists() and not (repo_path / "pyproject.toml").exists(): return {"passed": False, "tests_run": 0, "failures": 0, "output": "no test config"} try: result = subprocess.run( ["python3", "-m", "pytest", "--tb=short", "-q"], cwd=str(repo_path), capture_output=True,- Confidence
- 89% confidence
- Finding
- result = subprocess.run( ["python3", "-m", "pytest", "--tb=short", "-q"], cwd=str(repo_path), capture_output=True, text=True, timeou
