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

Function _project

tests/test_hook_bash_read.py:33–47  ·  view source on GitHub ↗
(tmp_path)

Source from the content-addressed store, hash-verified

31
32
33def _project(tmp_path):
34 proj = tmp_path / "proj"
35 (proj / "src").mkdir(parents=True)
36 (proj / "src" / "app.py").write_text("import os\n\ndef run():\n return os.getcwd()\n", encoding="utf-8")
37 (proj / "README.md").write_text("# demo\n", encoding="utf-8")
38 (proj / "package.json").write_text("{}\n", encoding="utf-8")
39 (proj / "logo.png").write_bytes(b"\x89PNG")
40 out = proj / "graphify-out"
41 out.mkdir()
42 (out / "GRAPH_REPORT.md").write_text("# report\n", encoding="utf-8")
43 (out / "graph.json").write_text(json.dumps(GRAPH), encoding="utf-8")
44 outside = tmp_path / "elsewhere"
45 outside.mkdir()
46 (outside / "other.py").write_text("x = 1\n", encoding="utf-8")
47 return proj
48
49
50def _env(proj, **extra):

Calls

no outgoing calls

Tested by

no test coverage detected