openzim / python-scraperlib

Collection of Python code to re-use across Python-based scrapers
GNU General Public License v3.0
19 stars 16 forks source link

Fixed download test inconsistency #77

Closed rgaudin closed 3 years ago

rgaudin commented 3 years ago

URL http://google.com/favicon.ico randomly responds with gzip-encoded data This handles both cases.

codecov[bot] commented 3 years ago

Codecov Report

Merging #77 (2dd8501) into master (1c44569) will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #77   +/-   ##
=======================================
  Coverage   99.90%   99.90%           
=======================================
  Files          25       25           
  Lines        1017     1017           
=======================================
  Hits         1016     1016           
  Misses          1        1           

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 1c44569...2dd8501. Read the comment docs.