from pathlib import Path


def _build_path(file_name: str) -> Path:
    """Build path to test data file based on file name."""
    test_dir = Path(__file__).parent
    return test_dir / "testdata" / file_name