Exemplo n.º 1
0
 def test_parse_config_adding_root_and_module_root_for_dev(self):
     test_config = parse_config(self.dev_test_plugin_path)
     print test_config
     expected_module_root = os.path.dirname(self.dev_test_plugin_path)
     expected_root = os.path.dirname(expected_module_root)
     self.assertEqual(test_config.get('module_root'), expected_module_root)
     self.assertEqual(test_config.get('root'), expected_root)
Exemplo n.º 2
0
 def test_parse_config_adding_root_and_module_root_for_production(self):
     for path_values in (dict(py_version='2.7', plugin_ver='1.0'),):
         test_path = self.production_test_plugin_path.format(**path_values)
         test_config = parse_config(test_path)
         expected_module_root = os.path.dirname(test_path)
         expected_root = os.path.join('/', 'opt', 'sideboard', 'plugins', 'configuration-test')
         assert test_config.get('module_root') == expected_module_root
         assert test_config.get('root') == expected_root
Exemplo n.º 3
0
 def test_parse_config_adding_root_and_module_root_for_production(self):
     for path_values in (dict(py_version='2.7', plugin_ver='1.0'), ):
         test_path = self.production_test_plugin_path.format(**path_values)
         test_config = parse_config(test_path)
         expected_module_root = os.path.dirname(test_path)
         expected_root = os.path.join('/', 'opt', 'sideboard', 'plugins',
                                      'configuration-test')
         assert test_config.get('module_root') == expected_module_root
         assert test_config.get('root') == expected_root
Exemplo n.º 4
0
 def test_parse_config_adding_root_and_module_root_for_dev(self):
     test_config = parse_config(self.dev_test_plugin_path)
     expected_module_root = os.path.dirname(self.dev_test_plugin_path)
     expected_root = os.path.dirname(expected_module_root)
     assert test_config.get('module_root') == expected_module_root
     assert test_config.get('root') == expected_root
Exemplo n.º 5
0
 def test_parse_config_adding_root_and_module_root_for_dev(self):
     test_config = parse_config(self.dev_test_plugin_path)
     expected_module_root = os.path.dirname(self.dev_test_plugin_path)
     expected_root = os.path.dirname(expected_module_root)
     assert test_config.get('module_root') == expected_module_root
     assert test_config.get('root') == expected_root