Exemplo n.º 1
0
 def test_check_param_filter_by_name_failed_int(self):
     dic_ = {'filter_by_name': 1}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 2
0
 def test_check_filter_by_name_listener_ok(self):
     dic_ = {'filter_by_name': "False"}
     m.check_parameters(dic_)
Exemplo n.º 3
0
 def test_check_param_groups_only_str_ok(self):
     dic_ = {'groups': ['1', '2']}
     m.check_parameters(dic_)
Exemplo n.º 4
0
 def test_check_param_params_ok(self):
     dic_ = {'params': {}}
     m.check_parameters(dic_)
Exemplo n.º 5
0
 def test_check_param_name_ok(self):
     dic_ = {'suite_name': '1'}
     m.check_parameters(dic_)
Exemplo n.º 6
0
 def test_check_param_groups_failed(self):
     dic_ = {'groups': 'sdsd'}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 7
0
 def test_check_param_listener_ok(self):
     dic_ = {'listener': "module.1"}
     m.check_parameters(dic_)
Exemplo n.º 8
0
 def test_check_param_verbose_None(self):
     dic_ = {'verbose': None}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 9
0
 def test_check_param_listener_failed_int(self):
     dic_ = {'listener': 1}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 10
0
 def test_check_param_listener_fail_if_no_module(self):
     with self.assertRaises(ValueError):
         dic_ = {'listener': "1"}
         m.check_parameters(dic_)
Exemplo n.º 11
0
 def test_check_param_mod_failed_None(self):
     dic_ = {'modules': 1}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 12
0
 def test_check_param_params_failed_None(self):
     dic_ = {'params': None}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 13
0
 def test_check_param_params_list(self):
     dic_ = {'params': [1]}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 14
0
 def test_check_filter_by_name_listener_ok_empty(self):
     dic_ = {'filter_by_name': ""}
     m.check_parameters(dic_)
Exemplo n.º 15
0
 def test_check_param_listener_def_file_listener(self):
     dic_ = {'listener': "DefaultFileListener"}
     m.check_parameters(dic_)
Exemplo n.º 16
0
 def test_check_param_verbose_ok(self):
     dic_ = {'verbose': 3}
     m.check_parameters(dic_)
Exemplo n.º 17
0
 def test_check_param_threads_failed_str(self):
     dic_ = {'threads': "1"}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 18
0
 def test_check_param_name(self):
     dic_ = {'suite_name': 1}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 19
0
 def test_check_threads_listener_ok(self):
     dic_ = {'threads': 1}
     m.check_parameters(dic_)
Exemplo n.º 20
0
 def test_check_param_groups_ok(self):
     dic_ = {'groups': []}
     m.check_parameters(dic_)
Exemplo n.º 21
0
 def test_check_param_dry_run_failed_int(self):
     dic_ = {'dry_run': 1}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 22
0
 def test_check_param_groups_only_str_failed(self):
     dic_ = {'groups': [1, 2]}
     with self.assertRaises(ValueError):
         m.check_parameters(dic_)
Exemplo n.º 23
0
 def test_check_dry_run_listener_ok(self):
     dic_ = {'dry_run': False}
     m.check_parameters(dic_)
Exemplo n.º 24
0
 def test_check_param_mod_ok(self):
     dic_ = {'modules': []}
     m.check_parameters(dic_)
Exemplo n.º 25
0
 def test_check_param_mod_only_str_ok(self):
     dic_ = {'modules': ['1', '2']}
     m.check_parameters(dic_)