def test_case_926_file_scope_merge_mark(tmp_path):
    """
    When using merge=False on toplevel with global merge_enabled=True
    Should propagate merge=False to nested structures
    """
    file_a = create_file(
        tmp_path / "a.toml",
        """\
        [default]
        DEBUG = true
        [default.nested]
        Name="Test"
        """,
    )

    file_hooks = create_file(
        tmp_path / "dynaconf_hooks.py",
        """\
        def post(settings):
            data = {"dynaconf_merge": False}
            if settings.DEBUG:
                data["nested"] = {"database_url": "sqlite://"}
            return data
        """,
    )
    settings = Dynaconf(
        environments=True,
        settings_files=[file_a, file_hooks],
    )

    assert settings.nested.database_url == "sqlite://"
    with pytest.raises(AttributeError):
        settings.nested.name

    When using merge=False on toplevel with global merge_enabled=True
    Should propagate merge=False to nested structures
    
tests_functional/issues/835_926_enable-merge-equal-false/app_test.py