def test_dirs_search(self): root, config, cleanup = self._init_dirs() try: v = vyper.Vyper() v.set_config_name(config) v.set_config_type('toml') v.set_default('key', 'default') entries = os.listdir(root) for e in entries: if os.path.isdir(e): v.add_config_path(e) v.read_in_config() self.assertEqual('value is ' + v._config_paths[0].name, v.get_string('key')) finally: cleanup()
def setUp(self): self.v = vyper.Vyper() self.v.parse_argv_disabled = True
def setUp(self): self.v = vyper.Vyper()