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

Plugin blocks internet access for all tests not using decorator #18

Closed drdavella closed 7 years ago

drdavella commented 7 years ago

Currently, if this plugin is installed it will block internet access to all tests that are not marked with @pytest.mark.remote_data. This is the desired behavior for astropy and some affiliated packages. However, just having this plugin installed will affect other packages that don't care about the remote_data plugin.

It seems like the best solution is to have a configuration option to enable the strict behavior. Packages that wish to enable this behavior will add a field to their setup.cfg file. Packages that don't care (and therefore don't have this option in their setup.cfg file) won't be affected.