Skip to content

Commit 8fb7c1e

Browse files
Update codeflash/discovery/discover_unit_tests.py
Co-authored-by: codeflash-ai[bot] <148906541+codeflash-ai[bot]@users.noreply.github.com>
1 parent 6968ab3 commit 8fb7c1e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

codeflash/discovery/discover_unit_tests.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ def _extract_dotted_call_name(node: ast.expr) -> str | None:
7171
parts = []
7272
current = node
7373
while isinstance(current, ast.Attribute):
74-
parts.insert(0, current.attr)
74+
parts.append(current.attr)
7575
current = current.value
7676
if isinstance(current, ast.Name):
77-
parts.insert(0, current.id)
77+
parts.append(current.id)
78+
parts.reverse()
7879
return ".".join(parts) if parts else None
7980
return None
8081

0 commit comments

Comments
 (0)