def prep_tests(): """ Prepare to fetch data in docstring tests. Returns ------- urls : dictionary dictionary of names and urls for data files fetch_data : function fetch_data() function Examples -------- >>> from mindboggle.mio.fetch_data import prep_tests >>> urls, fetch_data = prep_tests() >>> urls['left_mean_curvature'] 'http://media.mindboggle.info/data/cache/mindboggled/shapes/left_cortical_surface/mean_curvature.vtk' >>> fetch_data # doctest: +SKIP """ from mindboggle.mio.fetch_data import fetch_data from mindboggle.mio.fetch_data import test_urls urls = test_urls() return urls, fetch_data
def prep_tests(): """ Prepare to fetch data in docstring tests. Returns ------- urls : dictionary dictionary of names and urls for data files fetch_data : function fetch_data() function Examples -------- >>> from mindboggle.mio.fetch_data import prep_tests >>> urls, fetch_data = prep_tests() >>> urls['left_mean_curvature'] # shapes/left_cortical_surface/mean_curvature.vtk 'https://osf.io/2q7hb/?action=download&version=1' """ from mindboggle.mio.fetch_data import fetch_data, test_urls urls = test_urls() return urls, fetch_data