Construct a workspace whose ``.claude/skills/`` mirrors the fixture catalogue. Returns the workspace root.
(tmp: Path)
| 55 | |
| 56 | |
| 57 | def _build_workspace(tmp: Path) -> Path: |
| 58 | """Construct a workspace whose ``.claude/skills/`` mirrors the |
| 59 | fixture catalogue. Returns the workspace root.""" |
| 60 | project = tmp / "proj" |
| 61 | skills_root = project / ".claude" / "skills" |
| 62 | skills_root.mkdir(parents=True) |
| 63 | for name in FIXTURE_NAMES: |
| 64 | shutil.copytree(FIXTURES_ROOT / name, skills_root / name) |
| 65 | return project |
| 66 | |
| 67 | |
| 68 | def _isolate_env(tmp: Path) -> None: |