from pathlib import Path


def _validate_ignore_cells_with_warning(actual: str, test_nb_path: Path) -> bool:
    """Validate the results of notebooks with warnings."""
    expected_out = [
        "cell_2:3:1: F401 'glob' imported but unused",
    ]
    expected = "".join(f"{str(test_nb_path)}:{i}\n" for i in expected_out)
    return expected == actual