nikosarcevic / CosmOracle

https://share.streamlit.io/nikosarcevic/cosmoracle/main
GNU General Public License v3.0
22 stars 2 forks source link

Added unit tests for unit conversions. #55

Closed lonbar closed 2 years ago

lonbar commented 2 years ago

I initially planned to use this branch to remove numpy from page_distances.py, but in my sleep deprivation I forgot and instead wrote some tests for the unit conversion. :sweat_smile:

codecov-commenter commented 2 years ago

Codecov Report

Merging #55 (4a1e8a6) into main (3a2ea91) will increase coverage by 5.98%. The diff coverage is 98.24%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #55      +/-   ##
==========================================
+ Coverage   68.46%   74.44%   +5.98%     
==========================================
  Files           9       11       +2     
  Lines         260      317      +57     
==========================================
+ Hits          178      236      +58     
+ Misses         82       81       -1     
Flag Coverage Δ
unittests 74.44% <98.24%> (+5.98%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
tests/test_distance.py 100.00% <ø> (ø)
conversion_functions.py 90.00% <83.33%> (+40.00%) :arrow_up:
helpers.py 35.41% <100.00%> (+5.87%) :arrow_up:
tests/test_conversions.py 100.00% <100.00%> (ø)
tests/test_helper.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 3a2ea91...4a1e8a6. Read the comment docs.