mirror of
https://github.com/safishamsi/graphify.git
synced 2026-10-25 00:03:32 +00:00
fix: preserve loose sibling import resolution
(cherry picked from commit 61e3b8fcbc)
This commit is contained in:
1 parent
45e9af94db
commit
3792ff1fda
2 files changed
+49
-4
No files matched your search
@@ -127,7 +127,12 @@ def test_same_name_modules_in_separate_loose_directories(tmp_path):
|
||||
tools / "helper.py",
|
||||
tools / "main.py",
|
||||
]
|
||||
res = extract(paths, root=tmp_path, parallel=False)
|
||||
# Keep this cold: the shared content-hash cache can replay an extraction
|
||||
# that predates private import-resolution metadata and mask the ambiguity
|
||||
# guard's behavior.
|
||||
res = extract(
|
||||
paths, root=tmp_path, parallel=False, cache_root=tmp_path / "graphify-cache"
|
||||
)
|
||||
G = build_from_json(res, root=str(tmp_path), directed=True)
|
||||
|
||||
edges = _edge_set(G)
|
||||
|
||||
Reference in new issue
Block a user