from pathlib import Path

from recoil.core.paths import ProjectPaths


def test_episode_breakdown_dir_lands_under_episode_prep_dir():
    paths = ProjectPaths(project_root=Path("/tmp/recoil/projects/tartarus"))

    assert paths.episode_breakdown_dir(1) == paths.episode_prep_dir(1) / "breakdown"
    assert paths.episode_breakdown_dir(12) == Path(
        "/tmp/recoil/projects/tartarus/prep/ep_012/breakdown"
    )
