OCA / odoo-test-helper

Odoo Test Helper
11 stars 14 forks source link

[FIX] fix issue with recompute #9

Closed sebastienbeau closed 4 years ago

sebastienbeau commented 4 years ago

When a record is created before load a fake model we may have pending computation in the cache we need to do them before reloading the registry also do some minor clean and better comment

codecov[bot] commented 4 years ago

Codecov Report

Merging #9 (e897dd7) into master (5245bde) will decrease coverage by 1.26%. The diff coverage is 94.73%.

Impacted file tree graph

@@             Coverage Diff             @@
##            master       #9      +/-   ##
===========================================
- Coverage   100.00%   98.73%   -1.27%     
===========================================
  Files            2        2              
  Lines           61       79      +18     
===========================================
+ Hits            61       78      +17     
- Misses           0        1       +1     
Impacted Files Coverage Δ
odoo_test_helper/fake_model_loader.py 98.59% <94.44%> (-1.41%) :arrow_down:
tests/test_helper/models/test_mixin.py 100.00% <100.00%> (ø)

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 5245bde...e897dd7. Read the comment docs.

simahawk commented 4 years ago

@sebastienbeau great! And thanks for improving the README :+1: