Skip to content

Commit

Permalink
up version
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre Ferland committed Mar 25, 2020
1 parent ddc6141 commit 47855a7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
18 changes: 9 additions & 9 deletions tests/test_vyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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"))
Expand Down

0 comments on commit 47855a7

Please sign in to comment.