Something went wrong. Try again.
Integrated repository, worktree, git stacker, and project manager
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930from pathlib import Path
import pytest
from project_manager import configfrom project_manager.paths import Paths
@pytest.fixturedef pm_env(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Paths: repos = tmp_path / "repos" worktrees = tmp_path / "worktrees" projects = tmp_path / "projects" stacker_root = tmp_path / "stacker" repos.mkdir() worktrees.mkdir() projects.mkdir() stacker_root.mkdir()
cfg = tmp_path / "pm.toml" cfg.write_text( "[paths]\n" f'repos = "{repos}"\n' f'worktrees = "{worktrees}"\n' f'projects = "{projects}"\n' f'stacker_root = "{stacker_root}"\n' ) monkeypatch.setenv("PM_CONFIG", str(cfg)) return config.load()