Files
ClaudeInit/tests/conftest.py
T
2026-04-13 22:04:05 +02:00

25 lines
645 B
Python

"""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