99
1010from codeflash .cli_cmds .console import logger
1111from codeflash .code_utils .code_extractor import add_global_assignments , add_needed_imports_from_module
12- from codeflash .code_utils .config_parser import find_conftest_files
1312from codeflash .models .models import FunctionParent
1413
1514if TYPE_CHECKING :
@@ -34,17 +33,18 @@ def normalize_code(code: str) -> str:
3433 return ast .unparse (normalize_node (ast .parse (code )))
3534
3635
37- def modify_autouse_fixture ():
38- # find fixutre definition in conftetst.py (the one closest to the test)
39- # get fixtures present in override-fixtures in pyproject.toml
40- # add if marker closest return
41- conftest_files = find_conftest_files ()
42- for cf_file in conftest_files :
43- # iterate over all functions in the file
44- # if function has autouse fixture, modify function to bypass with custom marker
45- pass
36+ # def modify_autouse_fixture():
37+ # # find fixutre definition in conftetst.py (the one closest to the test)
38+ # # get fixtures present in override-fixtures in pyproject.toml
39+ # # add if marker closest return
40+ # conftest_files = find_conftest_files()
41+ # for cf_file in conftest_files:
42+ # # iterate over all functions in the file
43+ # # if function has autouse fixture, modify function to bypass with custom marker
44+ # pass
4645
47- #reuse line profiler utils to add decorator and import to test fns
46+
47+ # reuse line profiler utils to add decorator and import to test fns
4848
4949
5050class OptimFunctionCollector (cst .CSTVisitor ):
0 commit comments