(tmp_path)
| 31 | |
| 32 | |
| 33 | def _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 | |
| 50 | def _env(proj, **extra): |
no outgoing calls
no test coverage detected