def test_rmtree(tmp_path) -> None:
    """Verify `utils.rmtree` remove files marked as read-only."""
    file_path = Path(tmp_path, "bar")
    file_path.write_text("Test data")
    make_readonly(file_path)

    utils.rmtree(tmp_path)

    assert not Path(tmp_path).exists()
Verify `utils.rmtree` remove files marked as read-only.
tests/test_utils.py