hugovk / norwegianblue

CLI to show end-of-life dates for a number of products.
https://endoflife.date
MIT License
76 stars 4 forks source link

Mock instead of setting real env var #109

Closed hugovk closed 1 year ago

hugovk commented 1 year ago

Follow up to #107, mock the env var instead of setting it directly, so as not to affect other tests.

codecov[bot] commented 1 year ago

Codecov Report

Merging #109 (548f9eb) into main (e576831) will increase coverage by 0.03%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   95.30%   95.33%   +0.03%     
==========================================
  Files           9        9              
  Lines         383      386       +3     
==========================================
+ Hits          365      368       +3     
  Misses         18       18              
Flag Coverage Δ
macos-latest 95.33% <100.00%> (+0.03%) :arrow_up:
ubuntu-latest 95.33% <100.00%> (+0.03%) :arrow_up:
windows-latest 95.33% <100.00%> (+0.03%) :arrow_up:

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

Impacted Files Coverage Δ
tests/test_norwegianblue.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more