Skip to content

Commit 9048d38

Browse files
committed
basic tests, write more, write for functions not being tested yet
1 parent da667fe commit 9048d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def modify_addopts(config_file: Path) -> tuple[str, bool]: # noqa : PLR0911
142142
if new_addopts_args == addopts_args:
143143
return content, False
144144
# change addopts now
145-
if file_type == "toml":
145+
if file_type == ".toml":
146146
data["tool"]["pytest"]["ini_options"]["addopts"] = " ".join(new_addopts_args)
147147
# Write modified file
148148
with Path.open(config_file, "w", encoding="utf-8") as f:

0 commit comments

Comments
 (0)