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']
Example #2
0
 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'])))
Example #3
0
 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'])))
Example #4
0
 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'])))
Example #5
-1
 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'])))