Showing 1 of 1 files from the diff.

@@ -37,13 +37,13 @@
Loading
37 37
            new.insert(0, item)
38 38
39 39
    if isinstance(old, dict) and isinstance(new, dict):
40 -
        existing_value = recursive_get(old, full_path)  # doesnt handle None
40 +
        existing_value = recursive_get(new, full_path)  # doesnt handle None
41 41
        # Need to make every `None` on `_store` to be an wrapped `LazyNone`
42 42
43 43
        for key, value in old.items():
44 44
45 -
            if existing_value is not None and existing_value is value:
46 -
                continue
45 +
            # if existing_value is not None and existing_value is value:
46 +
            #     continue
47 47
48 48
            if key not in new:
49 49
                new[key] = value
@@ -55,10 +55,21 @@
Loading
55 55
                )
56 56
57 57
        handle_metavalues(old, new)
58 +
        recursive_set(new, full_path, existing_value)
58 59
59 60
    return new
60 61
61 62
63 +
def recursive_set(obj, names, value):
64 +
    if not names:
65 +
        return
66 +
    head, tail = names[0], names[1:]
67 +
    if not tail:
68 +
        obj[head] = value
69 +
    else:
70 +
        recursive_set(obj[head], tail, value)
71 +
72 +
62 73
def recursive_get(obj, names):
63 74
    """Given a dot accessible object and a list of names `foo.bar.zaz`
64 75
    gets recursivelly all names one by one obj.foo.bar.zaz.
Files Coverage
dynaconf 98.36%
Project Totals (17 files) 98.36%
Untitled
Untitled

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading