zyte-autoextract
zyte-autoextract copied to clipboard
Improve get_apikey method and its tests
This pull request:
- avoid problems when executing tests on local environment with populated variables
- avoid problems when environment variables are undefined or blank strings
Codecov Report
Merging #19 into master will decrease coverage by
0.26%. The diff coverage is71.42%.
@@ Coverage Diff @@
## master #19 +/- ##
==========================================
- Coverage 59.82% 59.55% -0.27%
==========================================
Files 14 14
Lines 448 450 +2
Branches 57 58 +1
==========================================
Hits 268 268
- Misses 179 181 +2
Partials 1 1
| Impacted Files | Coverage Δ | |
|---|---|---|
| autoextract/apikey.py | 85.71% <71.42%> (-14.29%) |
:arrow_down: |