astropy / pytest-remotedata

Pytest plugin to control whether tests are run that have remote data
BSD 3-Clause "New" or "Revised" License
23 stars 15 forks source link

List possible values in error message #45

Closed bsipocz closed 4 years ago

bsipocz commented 4 years ago

Because I can never remember whether it's 'all' or 'any'...

$ ~/munka/devel/astropy [:36557b988|✚ 1⚑ 22] $ pytest --remote-data=all astropy/coordinates/sky_coordinate.py
ERROR: 'all' is not a valid source for remote data, use one of 'astropy', 'any', 'github', 'none'

vs

$ ~/munka/devel/astropy [:36557b988|✚ 1⚑ 22] $ pytest --remote-data=all astropy/coordinates/sky_coordinate.py
ERROR: 'all' is not a valid source for remote data