def test_types(self): for dataset in config['datasets']: data = Data(os.path.join(_DATA_DIR, dataset['path'])) result = autolysis.types(data) yield self.check_type, result, dataset['types'], dataset['table']
def test_detect_types(self): for dataset in config['datasets']: for uri in dataset['uris']: data = Data(uri) result = al.types(data) self.check_type(result, dataset['types'], dataset['table']) print('for %s on %s' % (dataset['table'], getengine(dataset['uris'])))
def test_gains(self): for dataset in config['datasets']: for uri in dataset['uris']: data = Data(uri) types = al.types(data) result = al.groupmeans(data, types['groups'], types['numbers']) self.check_gain(result, dataset['groupmeans']['gain'], uri) print('for %s on %s' % (dataset['table'], getengine(dataset['uris'])))