transportenergy / database

Tools for accessing and maintaining the iTEM model & historical databases
https://transportenergy.rtfd.io
GNU General Public License v3.0
24 stars 8 forks source link

Improve coverage #16

Closed khaeru closed 4 years ago

khaeru commented 4 years ago

This PR… —Disables the R continuous integration testing, to speed it up. —Refactors the logging code to be more robust. —Adds @pytest.mark.skip() to tests that require the actual model database, i.e. not yet executable on CI. —Improves test coverage.

codecov[bot] commented 4 years ago

Codecov Report

Merging #16 into master will increase coverage by 8.91%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #16      +/-   ##
=========================================
+ Coverage   47.68%   56.6%   +8.91%     
=========================================
  Files          25      11      -14     
  Lines        1147     901     -246     
=========================================
- Hits          547     510      -37     
+ Misses        600     391     -209
Impacted Files Coverage Δ
item/cli.py 85.29% <100%> (ø) :arrow_up:
item/common.py 85.5% <100%> (+23.74%) :arrow_up:
item/model/get.py
item/model/itf.py
item/model/eia.py
item/model/exxonmobil.py
item/model/eppa5.py
item/model/bp.py
item/model/message.py
item/openkapsarc.py 93.33% <0%> (+5.33%) :arrow_up:
... and 3 more

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 417b270...1184dc3. Read the comment docs.