Skip to content

Commit 3deec3b

Browse files
authored
Fix import
Signed-off-by: SumanthRH <[email protected]>
1 parent 69ea553 commit 3deec3b

File tree

6 files changed

+21
-15
lines changed

6 files changed

+21
-15
lines changed

tests/evals/tasks/test_math.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
2-
from skythought_evals.tasks.math.math_handler import MathTaskHandler
2+
3+
from skythought.evals.tasks.math.math_handler import MathTaskHandler
34

45

56
class MockTaskConfig:

tests/evals/tasks/test_preprocessing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
2-
from skythought_evals.tasks import MMLUTaskHandler, TaskConfig
2+
3+
from skythought.evals.tasks import MMLUTaskHandler, TaskConfig
34

45
SYSTEM_PROMPT = "Please answer the following question:"
56

tests/evals/test_cli.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
import os
33

44
import pytest
5-
from skythought_evals.cli import (
5+
from typer.testing import CliRunner
6+
7+
from skythought.evals.cli import (
68
Backend,
79
SamplingParameters,
810
app,
911
)
10-
from typer.testing import CliRunner
1112

1213
runner = CliRunner(mix_stderr=False)
1314

@@ -74,7 +75,7 @@ def test_evaluate_success(tmp_result_dir, mocker):
7475
"""Test a successful execution of the `evaluate` command."""
7576
# Mock helper functions to avoid actual processing
7677
mocker.patch(
77-
"skythought_evals.cli.parse_common_args",
78+
"skythought.evals.cli.parse_common_args",
7879
return_value=(
7980
"amc23",
8081
{},
@@ -90,9 +91,9 @@ def test_evaluate_success(tmp_result_dir, mocker):
9091
None,
9192
),
9293
)
93-
mocker.patch("skythought_evals.cli.get_run_config", return_value={})
94-
mocker.patch("skythought_evals.cli.get_output_dir", return_value=tmp_result_dir)
95-
mocker.patch("skythought_evals.cli.generate_and_score")
94+
mocker.patch("skythought.evals.cli.get_run_config", return_value={})
95+
mocker.patch("skythought.evals.cli.get_output_dir", return_value=tmp_result_dir)
96+
mocker.patch("skythought.evals.cli.generate_and_score")
9697

9798
# Ensure the result directory does not exist initially
9899
assert not tmp_result_dir.exists()
@@ -142,7 +143,7 @@ def test_generate_success(tmp_result_dir, mocker):
142143
"""Test a successful execution of the `generate` command."""
143144
# Mock helper functions to avoid actual processing
144145
mocker.patch(
145-
"skythought_evals.cli.parse_common_args",
146+
"skythought.evals.cli.parse_common_args",
146147
return_value=(
147148
"amc23",
148149
{},
@@ -158,9 +159,9 @@ def test_generate_success(tmp_result_dir, mocker):
158159
None,
159160
),
160161
)
161-
mocker.patch("skythought_evals.cli.get_run_config", return_value={})
162-
mocker.patch("skythought_evals.cli.get_output_dir", return_value=tmp_result_dir)
163-
mocker.patch("skythought_evals.cli.generate_and_save")
162+
mocker.patch("skythought.evals.cli.get_run_config", return_value={})
163+
mocker.patch("skythought.evals.cli.get_output_dir", return_value=tmp_result_dir)
164+
mocker.patch("skythought.evals.cli.generate_and_save")
164165

165166
result = runner.invoke(
166167
app,

tests/evals/util/test_cli_util.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
2-
from skythought_evals.util.cli_util import _parse_multi_args, parse_multi_args
2+
3+
from skythought.evals.util.cli_util import _parse_multi_args, parse_multi_args
34

45

56
# Tests for _parse_multi_args

tests/evals/util/test_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
2-
from skythought_evals.util.common import has_code
2+
3+
from skythought.evals.util.common import has_code
34

45

56
@pytest.mark.parametrize(

tests/evals/util/test_math_parsing.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import pytest
2-
from skythought_evals.util.math_parsing_util import (
2+
3+
from skythought.evals.util.math_parsing_util import (
34
choice_answer_clean,
45
extract_answer,
56
get_multiple_choice_answer,

0 commit comments

Comments
 (0)