pytroll / pyorbital

Orbital and astronomy computations in python
http://pyorbital.readthedocs.org/
GNU General Public License v3.0
224 stars 77 forks source link

Skip tests if data are not available #60

Closed avalentino closed 4 years ago

avalentino commented 4 years ago

Test test_aiaa fails when the package is installed due to missing data. E.g.

$ python3 -m pytest --pyargs pyorbital

test_aiaa, indeed uses SGP4-VER.TLE which is not installed together with the test code.

This patch fixes the issue by skipping the test when data are not available.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.03%) to 86.893% when pulling 9ed66c79f68093f93d593dd9175a40559342bc4f on avalentino:skip-tests-if-data-are-not-available into 3ff7a6b1631deea9aed6ef227017e74f3ebdc379 on pytroll:master.