hmpf / easydmp

MIT License
7 stars 2 forks source link

Fix some optional section tests on postgres #153

Closed hmpf closed 3 years ago

hmpf commented 3 years ago

Closes #152.

test_get_optionalsection, test_isskipped:

For SectionFactory: see if setting both position and template fixes it, or else use Factory.build + instance.save instead of Factory.create, as create saves twice.

test_optional_section_in_summary:

codecov[bot] commented 3 years ago

Codecov Report

Merging #153 into master will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   60.99%   61.01%   +0.01%     
==========================================
  Files         110      110              
  Lines        6715     6718       +3     
==========================================
+ Hits         4096     4099       +3     
  Misses       2619     2619              
Impacted Files Coverage Δ
tests/dmpt/models/test_Section.py 100.00% <100.00%> (ø)
tests/test_settings.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 5feaebd...2aa330b. Read the comment docs.