def test_file_wrongsuffix() -> None:
        """Test ``validate_path`` raises ValueError for a file with wrong suffix."""
        with pytest.raises(ValueError, match="Path extension is not accepted."):
            validate_path("file.png", should_exist=False, extensions=(".json", ".txt"))
Test ``validate_path`` raises ValueError for a file with wrong suffix.
tests/unit/data/utils/test_path.py