from pathlib import Path
from bs4 import BeautifulSoup


def _unused_html(outdir: Path) -> BeautifulSoup:
    """Read and parse generated test unused.html."""
    text = (outdir / "unused.html").read_text(encoding="utf8")
    return BeautifulSoup(text, "html.parser")