Skip to content

Commit 167a04d

Browse files
fix typing error
1 parent e80d72a commit 167a04d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/code_utils/edit_generated_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def unique_inv_id(inv_id_runtimes: dict[InvocationId, list[int]], tests_project_
159159
)
160160
abs_path = tests_project_rootdir / Path(inv_id.test_module_path.replace(".", os.sep)).with_suffix(".py")
161161
abs_path_str = str(abs_path.resolve())
162-
if "__unit_test_" not in abs_path_str:
162+
if "__unit_test_" not in abs_path_str or not test_qualified_name:
163163
continue
164164
key = test_qualified_name + "#" + abs_path_str
165165
parts = inv_id.iteration_id.split("_").__len__() # type: ignore[union-attr]

0 commit comments

Comments
 (0)