Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed proxy variable feature. (#60) #148

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 0 additions & 5 deletions environ/environ.py
Expand Up @@ -276,11 +276,6 @@ def get_value(self, var, cast=None, default=NOTSET, parse_default=False):

value = default

# Resolve any proxied values
if hasattr(value, 'startswith') and value.startswith('$'):
value = value.lstrip('$')
value = self.get_value(value, cast=cast, default=default)

if value != default or (parse_default and value):
value = self.parse_value(value, cast)

Expand Down
2 changes: 1 addition & 1 deletion environ/test.py
Expand Up @@ -114,7 +114,7 @@ def test_bool_false(self):
self.assertTypeAndValue(bool, False, self.env.bool('BOOL_FALSE_VAR'))

def test_proxied_value(self):
self.assertTypeAndValue(str, 'bar', self.env('PROXIED_VAR'))
self.assertTypeAndValue(str, '$STR_VAR', self.env('PROXIED_VAR'))

def test_int_list(self):
self.assertTypeAndValue(list, [42, 33], self.env('INT_LIST', cast=[int]))
Expand Down