diff --git a/setup.py b/setup.py index 81e72db..b6bfce2 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name="vyper-config", - version="0.6.1", + version="0.6.2", description="Python configuration with (more) fangs", url="http://github.com/admiralobvious/vyper", author="Alexandre Ferland", diff --git a/tests/test_vyper.py b/tests/test_vyper.py index ea1c018..e92baf2 100644 --- a/tests/test_vyper.py +++ b/tests/test_vyper.py @@ -295,17 +295,17 @@ def test_toml(self): self.assertEqual("TOML Example", self.v.get("title")) def test_env_override_default_subclass(self): - os.environ['CLASS.KEY2'] = 'newval2' + os.environ["CLASS.KEY2"] = "newval2" - self.v.set_default('class.key1', 'val1') - self.v.set_default('class.key2', 'val2') - self.v.set_default('class.key3', 'val3') + self.v.set_default("class.key1", "val1") + self.v.set_default("class.key2", "val2") + self.v.set_default("class.key3", "val3") - self.v.bind_env('class.key1') - self.v.bind_env('class.key2') - self.v.bind_env('class.key3') + self.v.bind_env("class.key1") + self.v.bind_env("class.key2") + self.v.bind_env("class.key3") - self.assertEqual('val1', self.v.get('class.key1')) + self.assertEqual("val1", self.v.get("class.key1")) def test_env(self): self._init_json() @@ -596,7 +596,7 @@ def test_nested_keys_with_environment_variables(self): os.environ["ENV_PREFIX_CLOTHING_PANTS_SIZE"] = "small" self._init_yaml() - self.v.set_env_prefix('env_prefix') + self.v.set_env_prefix("env_prefix") self.v.automatic_env() self.assertEqual("small", self.v.get("clothing.pants.size"))