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:
Jon Saad-Falcon
2026-03-02 22:19:45 +00:00
co-authored by Claude Opus 4.6
parent a9518e1574
commit cf12b9b28c
2 changed files with 1 additions and 6 deletions
-5
View File
@@ -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
+1 -1
View File
@@ -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