mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-30 10:52:15 +00:00
fix: patch stale evals imports missed during migration
- Fix mock.patch() target in test_config.py (evals.cli -> openjarvis.evals.cli) - Remove stale sys.path manipulation in evals/tests/conftest.py Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
a9518e1574
commit
cf12b9b28c
@@ -2,15 +2,10 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
from pathlib import Path
|
||||
from typing import Any, Dict, Optional, Tuple
|
||||
|
||||
import pytest
|
||||
|
||||
# Ensure evals package is importable from the repo root
|
||||
sys.path.insert(0, str(Path(__file__).resolve().parent.parent.parent))
|
||||
|
||||
from openjarvis.evals.core.backend import InferenceBackend
|
||||
from openjarvis.evals.core.dataset import DatasetProvider
|
||||
from openjarvis.evals.core.scorer import Scorer
|
||||
|
||||
@@ -644,7 +644,7 @@ class TestCLIConfig:
|
||||
""")
|
||||
|
||||
runner = CliRunner()
|
||||
with patch("evals.cli._run_single", side_effect=Exception("mock")):
|
||||
with patch("openjarvis.evals.cli._run_single", side_effect=Exception("mock")):
|
||||
result = runner.invoke(main, ["run", "--config", str(p)])
|
||||
|
||||
# Should print suite info before failing
|
||||
|
||||
Reference in New Issue
Block a user