def test_get_with_sysenv_fallback_global_as_list():
    """
    When sysenv_fallback is list
    Should fallback to sys envvars only for listed names
    """
    settings = Dynaconf(sysenv_fallback=["FOO_KEY"])
    settings.environ["TEST_KEY"] = "TEST_VALUE"
    settings.environ["FOO_KEY"] = "FOO_VALUE"

    assert isinstance(settings.sysenv_fallback_for_dynaconf, list)
    assert not settings.get("test_key")
    assert settings.get("foo_key") == "FOO_VALUE"

    When sysenv_fallback is list
    Should fallback to sys envvars only for listed names
    
tests/test_base.py