forked from Rockachopa/Timmy-time-dashboard
Merge pull request #67 from AlexanderWhitestone/claude/fix-build-zLt4o
This commit is contained in:
@@ -33,6 +33,9 @@ for _mod in [
|
||||
# pyzbar is optional (for QR code invite detection)
|
||||
"pyzbar",
|
||||
"pyzbar.pyzbar",
|
||||
# requests is optional — used by reward scoring (swarm.learner) to call
|
||||
# Ollama directly; stub so patch("requests.post") works in tests.
|
||||
"requests",
|
||||
]:
|
||||
sys.modules.setdefault(_mod, MagicMock())
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@ from __future__ import annotations
|
||||
import asyncio
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
@@ -160,7 +161,7 @@ def test_pass():
|
||||
""")
|
||||
safety = GitSafety(
|
||||
repo_path=temp_git_repo,
|
||||
test_command="python -m pytest test_pass.py -v",
|
||||
test_command=f"{sys.executable} -m pytest test_pass.py -v",
|
||||
)
|
||||
|
||||
snapshot = await safety.snapshot(run_tests=True)
|
||||
|
||||
@@ -6,6 +6,7 @@ Tests timeout handling, git failures, merge conflicts, and edge cases.
|
||||
from __future__ import annotations
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
from unittest.mock import patch
|
||||
@@ -124,7 +125,7 @@ class TestGitSafetyErrors:
|
||||
|
||||
safety = GitSafety(
|
||||
repo_path=repo_path,
|
||||
test_command="python -m pytest test_fail.py -v",
|
||||
test_command=f"{sys.executable} -m pytest test_fail.py -v",
|
||||
)
|
||||
|
||||
snapshot = await safety.snapshot(run_tests=True)
|
||||
|
||||
Reference in New Issue
Block a user