MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _project

Function _project

tests/test_hook_compact.py:29–39  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

27
28
29def _project(tmp_path):
30 src = tmp_path / "src"
31 src.mkdir()
32 f = src / "mod.py"
33 f.write_text("def x():\n return 1\n", encoding="utf-8")
34 out = tmp_path / "graphify-out"
35 out.mkdir()
36 (out / "manifest.json").write_text(json.dumps({"src/mod.py": {"mtime": 1}}), encoding="utf-8")
37 time.sleep(0.02)
38 (out / "graph.json").write_text('{"nodes":[],"links":[]}', encoding="utf-8")
39 return f
40
41
42def _env(tmp_path):

Calls

no outgoing calls

Tested by

no test coverage detected