Compare 4e6b4ed ... +0 ... 4b93ba5

No flags found

Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.

e.g., #unittest #integration

#production #enterprise

#frontend #backend

Learn more about Codecov Flags here.

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.

Learn more Showing 2 files with coverage changes found.

Changes in dynaconf/utils/__init__.py
-13
+13
Loading file...
Changes in dynaconf/utils/parse_conf.py
-1
+1
Loading file...
Files Coverage
dynaconf -1.64% 98.36%
Project Totals (17 files) 98.36%
Loading