Esempio n. 1
0
 def test_config_file(self):
     # if configuration file doesn't exist
     conf = config.read_config(ensure_config=False, force_refresh=True)
     self.assertIsNotNone(conf)
     # and force creating config
     conf = config.read_config(ensure_config=True, force_refresh=True)
     self.assertIsNotNone(conf)
Esempio n. 2
0
 def test_config(self):
     cfg = config.read_config()
     self.assertIn('KD2_XML', cfg)
     self.assertTrue(config.get_file('KD2_XML'))
     getLogger().info("jamdict log file location: {}".format(
         config._get_config_manager().locate_config()))