def METHOD_NAME(
    manager_fixture,
    flags: int,
    set_settings_val: bool,
    outcome: NotWritableReason,
    request: Any,
) -> None:
    """
    Test some variations of the `can_update` method when dealing
    with readonly options.
    """
    manager = request.getfixturevalue(manager_fixture)
    manager.register("option", flags=flags)
    if set_settings_val:
        settings.SENTRY_OPTIONS["option"] = "a_value"
    reason_automator = manager.can_update("option", "val", UpdateChannel.AUTOMATOR)
    assert reason_automator == outcome