loganasherjones / yapconf

Yet Another Python Configuration
http://yapconf.readthedocs.io/en/stable/
MIT License
18 stars 4 forks source link

Fixes #75 #77

Closed loganasherjones closed 6 years ago

loganasherjones commented 6 years ago

In memory dictionaries would be auto-updated and thus the item watch functions would never get called. Performing a deep copy of the current config on init and when the config changes ensures that we are comparing new dictionaries when someone changes the in-memory dict.

codecov-io commented 6 years ago

Codecov Report

Merging #77 into master will increase coverage by 0.39%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
+ Coverage   93.44%   93.83%   +0.39%     
==========================================
  Files           7        7              
  Lines        1037     1038       +1     
  Branches      217      217              
==========================================
+ Hits          969      974       +5     
+ Misses         32       31       -1     
+ Partials       36       33       -3
Impacted Files Coverage Δ
yapconf/handlers.py 97.14% <100%> (+0.08%) :arrow_up:
yapconf/items.py 97.34% <0%> (+0.24%) :arrow_up:
yapconf/docs.py 90.57% <0%> (+0.72%) :arrow_up:
yapconf/spec.py 100% <0%> (+1.23%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 632dace...a05513c. Read the comment docs.