Skip to content

Commit 934a718

Browse files
authored
Merge pull request #1784 from codeflash-ai/fix/failing_tests
fix failing unit tests with recent refactoring
2 parents 5d872e8 + 3367383 commit 934a718

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/test_mock_candidate_replacement.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from codeflash.languages.python.context.unused_definition_remover import detect_unused_helper_functions
1010
from codeflash.models.function_types import FunctionParent
1111
from codeflash.models.models import CodeStringsMarkdown
12-
from codeflash.optimization.function_optimizer import FunctionOptimizer
12+
from codeflash.languages.python.function_optimizer import PythonFunctionOptimizer
1313
from codeflash.verification.verification_utils import TestConfig
1414

1515
ORIGINAL_SOURCE = '''\
@@ -649,7 +649,7 @@ def run_replacement(temp_project):
649649
parents=[FunctionParent(name="PSBaseParser", type="ClassDef")],
650650
)
651651

652-
optimizer = FunctionOptimizer(
652+
optimizer = PythonFunctionOptimizer(
653653
function_to_optimize=function_to_optimize,
654654
test_cfg=test_cfg,
655655
function_to_optimize_source_code=source_file.read_text(encoding="utf-8"),
@@ -715,7 +715,7 @@ def test_detect_unused_helpers_handles_attribute_refs(temp_project):
715715
parents=[FunctionParent(name="PSBaseParser", type="ClassDef")],
716716
)
717717

718-
optimizer = FunctionOptimizer(
718+
optimizer = PythonFunctionOptimizer(
719719
function_to_optimize=function_to_optimize,
720720
test_cfg=test_cfg,
721721
function_to_optimize_source_code=source_file.read_text(encoding="utf-8"),

0 commit comments

Comments
 (0)