from __future__ import annotations

from pathlib import Path


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


def test_root_gitignore_covers_runtime_artifacts() -> None:
    content = (ROOT / ".gitignore").read_text(encoding="utf-8")

    for expected in (
        ".artifacts/",
        ".local_stack/",
        ".codex_tmp/",
        ".data_local/",
        ".data_smoke/",
        ".data_gate*/",
        ".data_uat_*/",
        "**/__pycache__/",
    ):
        assert expected in content


def test_cleanup_script_targets_runtime_directories() -> None:
    content = (ROOT / "scripts" / "clean_workspace.ps1").read_text(encoding="utf-8")

    for expected in (
        "__pycache__",
        ".pytest_cache",
        ".codex_tmp",
        ".local_stack",
        ".artifacts",
        ".data_local",
        ".data_smoke",
        ".data_gate",
        ".data_uat_",
    ):
        assert expected in content



