import sys
from pathlib import Path

import pytest

sys.path.insert(0, str(Path(__file__).parent.parent.parent))


@pytest.fixture
def tmp(tmp_path: Path) -> Path:
    """Alias for pytest's builtin ``tmp_path``.

    The dispatch-status tests request a ``tmp`` fixture, which never existed —
    they had been erroring (not running) since they were written. Aliasing the
    builtin makes them actually execute.
    """
    return tmp_path
