Skip to content

Commit 97eabcf

Browse files
committed
only modify generated files
1 parent 92c97bb commit 97eabcf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

codeflash/optimization/function_optimizer.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,13 +214,13 @@ def optimize_function(self) -> Result[BestOptimization, str]: # noqa: PLR0911
214214
}
215215
instrumented_unittests_created_for_function = self.instrument_existing_tests(function_to_all_tests)
216216
if self.args.override_fixtures:
217-
logger.debug("disabling all autouse fixtures associated with the test files")
217+
logger.info("Disabling all autouse fixtures associated with the generated test files")
218218
original_conftest_content = modify_autouse_fixture(
219-
generated_test_paths + generated_perf_test_paths + list(instrumented_unittests_created_for_function)
219+
generated_test_paths + generated_perf_test_paths
220220
)
221-
logger.debug("add custom marker to all tests")
221+
logger.info("Add custom marker to generated test files")
222222
add_custom_marker_to_all_tests(
223-
generated_test_paths + generated_perf_test_paths + list(instrumented_unittests_created_for_function)
223+
generated_test_paths + generated_perf_test_paths
224224
)
225225

226226
# Get a dict of file_path_to_classes of fto and helpers_of_fto

0 commit comments

Comments
 (0)