Skip to content

Commit bfc6bb4

Browse files
committed
wip
1 parent ed952d7 commit bfc6bb4

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

codeflash/code_utils/code_replacer.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
from codeflash.cli_cmds.console import logger
1111
from 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
1312
from codeflash.models.models import FunctionParent
1413

1514
if 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

5050
class OptimFunctionCollector(cst.CSTVisitor):

0 commit comments

Comments
 (0)