from pathlib import Path


ROOT = Path(__file__).resolve().parents[1]


def test_local_generated_artifacts_stay_ignored():
    gitignore = (ROOT / ".gitignore").read_text(encoding="utf-8")

    required_patterns = [
        ".claude/worktrees/",
        ".tmp_*",
        "tmp_*.png",
        "MOMO Pro/",
        "MOMO Pro/uploads/",
        "MOMO Pro/screenshots/",
        "uploads/",
        "screenshots/",
        "database/*.db",
    ]
    for pattern in required_patterns:
        assert pattern in gitignore
