Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(3)  |  Derive(0)  |  Import(0)

src/b/o/boatd-HEAD/boatd/tests/test_boatd.py   boatd(Download)
    def test_load_json_config(self):
        conf_file = os.path.join(self.directory, 'config.json')
        conf = boatd.load_conf(sys.argv + [conf_file])
        assert conf.scripts.driver == 'driver.py'
 
    def test_load_yaml_config(self):
        conf_file = os.path.join(self.directory, 'config.yaml')
        conf = boatd.load_conf(sys.argv + [conf_file])
    def test_load_default(self):
        current_dir = os.getcwd()
        os.chdir(self.directory)
        conf = boatd.load_conf(sys.argv)
        assert conf.scripts.driver == 'driver.py'