Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/a/s/astroquery-0.1/astroquery/conftest.py   astroquery(Download)
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function
from .utils import turn_off_internet,turn_on_internet
 
from astropy.tests.helper import pytest, remote_data
        #turn_on_internet(verbose=config.option.verbose)
    else:
        turn_off_internet(verbose=config.option.verbose)
 

src/a/s/astroquery-HEAD/astroquery/conftest.py   astroquery(Download)
# Licensed under a 3-clause BSD style license - see LICENSE.rst
from __future__ import print_function
from .utils import turn_off_internet
 
from astropy.tests.helper import pytest, remote_data
def pytest_configure(config):
    if config.getoption('remote_data'):
        pass
    else:
        turn_off_internet(verbose=config.option.verbose)