def test_set__validate_on_update_is_str_all():
    """
    When `Dynaconf(validate_on_update="all")`
    Should behave correctly (bypass, pass or raise)
    """
    settings = Dynaconf(validate_on_update="all")
    settings.validators.register(Validator("value_a", must_exist=True))

    # should bypass
    settings.set("value_b__nested", "foo", validate=False)
    settings.set("value_b__nested", "foo", validate="random")
    settings.set("value_b__nested", "foo", validate=123)

    # should raise. "all" doesn't make difference here
    with pytest.raises(ValidationError):
        settings.set("value_b__nested", "foo")

    # should pass
    assert not settings.exists("value_a")
    settings.set("value_a__nested", "foo")

    When `Dynaconf(validate_on_update="all")`
    Should behave correctly (bypass, pass or raise)
    
tests/test_base.py