Skip to content

Commit 094e20e

Browse files
committed
modify expectations
1 parent c47e480 commit 094e20e

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

tests/scripts/end_to_end_test_futurehouse.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
def run_test(expected_improvement_pct: int) -> bool:
88
config = TestConfig(
99
file_path="src/aviary/common_tags.py",
10-
expected_unit_tests=2,
10+
expected_unit_tests_count=2,
1111
min_improvement_x=0.05,
1212
coverage_expectations=[
1313
CoverageExpectation(

tests/scripts/end_to_end_test_topological_sort_worktree.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def run_test(expected_improvement_pct: int) -> bool:
1717
expected_lines=[25, 26, 27, 28, 29, 30, 31],
1818
)
1919
],
20-
expected_unit_tests=13,
20+
expected_unit_test_files=1, # Per-function count
2121
)
2222
cwd = (pathlib.Path(__file__).parent.parent.parent / "code_to_optimize").resolve()
2323
return_var = run_codeflash_command(cwd, config, expected_improvement_pct)

tests/scripts/end_to_end_test_tracer_replay.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def run_test(expected_improvement_pct: int) -> bool:
88
config = TestConfig(
99
trace_mode=True,
1010
min_improvement_x=0.1,
11-
expected_unit_tests=None, # Tracer creates replay tests dynamically, skip validation
11+
expected_unit_tests_count=None, # Tracer creates replay tests dynamically, skip validation
1212
coverage_expectations=[
1313
CoverageExpectation(function_name="funcA", expected_coverage=100.0, expected_lines=[6, 7, 8, 9, 11, 14])
1414
],

0 commit comments

Comments
 (0)