Skip to content

Commit 79cee0d

Browse files
committed
todo cleanup write tests
1 parent 82f1b81 commit 79cee0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

codeflash/code_utils/code_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def modify_addopts(config_file: Path) -> tuple[str, bool]: # noqa : PLR0911
123123
return content, False
124124
if isinstance(original_addopts, list):
125125
original_addopts = " ".join(original_addopts)
126+
original_addopts = original_addopts.replace("=", " ")
126127
addopts_args = (
127128
original_addopts.split()
128129
) # any number of space characters as delimiter, doesn't look at = which is fine
@@ -135,6 +136,7 @@ def modify_addopts(config_file: Path) -> tuple[str, bool]: # noqa : PLR0911
135136
original_addopts = data.get("pytest", {}).get("addopts", "") # should only be a string
136137
else:
137138
original_addopts = data.get("tool:pytest", {}).get("addopts", "") # should only be a string
139+
original_addopts = original_addopts.replace("=", " ")
138140
addopts_args = original_addopts.split()
139141
new_addopts_args = filter_args(addopts_args)
140142
if new_addopts_args == addopts_args:

0 commit comments

Comments
 (0)