First version. I can init

This commit is contained in:
2026-04-13 22:04:05 +02:00
commit 40ea9d5c1f
18 changed files with 713 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
"""Shared fixtures for myclaude tests."""
from pathlib import Path
import pytest
@pytest.fixture
def tmp_repo(tmp_path: Path) -> Path:
"""Create a minimal repo directory structure with two skills and a CLAUDE.md."""
repo = tmp_path / "repo"
for skill in ("skill_a", "skill_b"):
(repo / "skills" / skill).mkdir(parents=True)
(repo / "skills" / skill / "SKILL.md").write_text(f"# {skill}")
(repo / "CLAUDE.md").write_text("# Claude Template")
return repo
@pytest.fixture
def tmp_project(tmp_path: Path) -> Path:
"""Create an empty project directory."""
project = tmp_path / "project"
project.mkdir()
return project