示例#1
0
 def test_get_config_global_data(self):
     config = QualityControlConfig()
     config_data = config.get_config_global_data('model_list')
     self.assertEqual(config_data,
                      ['lr', 'svr', 'scale_by_ratio', 'xgboost', 'k_means'])
示例#2
0
def test_get_config_var_data():
    config = QualityControlConfig()
    res = config.get_config_var_data('effective_model_list', 'CO')
    print(res)
示例#3
0
def test_get_config_city_data():
    config = QualityControlConfig()
    res = config.get_config_city_data('is_aqi', 1)
    print(res)
示例#4
0
def test_get_config_global_data():
    config = QualityControlConfig()
    res = config.get_config_global_data('model_list')
    print(res)
示例#5
0
def test_get_config_var_list():
    config = QualityControlConfig()
    res = config.get_config_var_list()
    print(res)
示例#6
0
 def test_get_config_var_data(self):
     config = QualityControlConfig()
     config_data = config.get_config_var_data('effective_model_list', 'CO')
     self.assertEqual(config_data, ['lr'])
示例#7
0
 def test_get_config_city_data(self):
     config = QualityControlConfig()
     config_data = config.get_config_city_data('is_aqi', 1)
     self.assertEqual(config_data, True)