Skip to content

Commit 935583f

Browse files
committed
precommit fix
1 parent 5596de2 commit 935583f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codeflash/code_utils/edit_generated_tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,9 @@ def unique_inv_id(inv_id_runtimes: dict[InvocationId, list[int]]) -> dict[str, l
167167
abs_path = str(Path(inv_id.test_module_path.replace(".", os.sep)).with_suffix(".py").resolve().with_suffix(""))
168168
if "__unit_test_" not in abs_path:
169169
continue
170-
key = test_qualified_name + "#" + abs_path # type: ignore[operator]
171-
parts = inv_id.iteration_id.split("_").__len__() # type: ignore[union-attr]
172-
cur_invid = inv_id.iteration_id.split("_")[0] if parts < 3 else "_".join(inv_id.iteration_id.split("_")[:-1]) # type: ignore[union-attr]
170+
key = test_qualified_name + "#" + abs_path # type: ignore[operator]
171+
parts = inv_id.iteration_id.split("_").__len__() # type: ignore[union-attr]
172+
cur_invid = inv_id.iteration_id.split("_")[0] if parts < 3 else "_".join(inv_id.iteration_id.split("_")[:-1]) # type: ignore[union-attr]
173173
match_key = key + "#" + cur_invid
174174
if match_key not in unique_inv_ids:
175175
unique_inv_ids[match_key] = []

0 commit comments

Comments
 (0)