def METHOD_NAME(self, target_key, geosx_problem):
    """
    Test writing to read-only wrappers.
    Note: this error does not get called on certain scalar wrappers (time, cycle)
    Args:
        target_key (str): Key value for the target wrapper
        geosx_proplem (pygeosx.problem): The problem handle
    """
    # yapf: enable
    x = geosx_problem.get_wrapper(target_key).value()
    if hasattr(x, "to_numpy"):
        x = x.to_numpy()
    with pytest.raises(ValueError):
        x += 1