示例#1
0
 def test_load_default(self):
     current_dir = os.getcwd()
     os.chdir(self.directory)
     conf = boatd.load_conf("config.yaml")
     assert conf.scripts.driver == "driver.py"
示例#2
0
 def test_load_yaml_config(self):
     conf_file = os.path.join(self.directory, "config.yaml")
     conf = boatd.load_conf(conf_file)
     assert conf.scripts.driver == "driver.py"
示例#3
0
文件: test_boatd.py 项目: thip/boatd
 def test_load_default(self):
     current_dir = os.getcwd()
     os.chdir(self.directory)
     conf = boatd.load_conf('config.yaml')
     assert conf.scripts.driver == 'driver.py'
示例#4
0
文件: test_boatd.py 项目: zuzak/boatd
 def test_load_json_config(self):
     conf_file = os.path.join(self.directory, 'config.json')
     conf = boatd.load_conf(conf_file)
     assert conf.scripts.driver == 'driver.py'
示例#5
0
文件: test_boatd.py 项目: thip/boatd
 def test_load_yaml_config(self):
     conf_file = os.path.join(self.directory, 'config.yaml')
     conf = boatd.load_conf(conf_file)
     assert conf.scripts.driver == 'driver.py'