Skip to content

Commit

Permalink
Adding another test for the $HERE variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mwatts15 committed May 11, 2019
1 parent cb8cb25 commit a8a5c03
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/ConfigureTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ def test_here_varname_override(self):
'z': '$HERE/car'})
self.assertEqual(c['z'], 'there/car')

def test_here_varname_no_value(self):
with patch.dict('os.environ', (), clear=True):
c = Configure.process_config({'z': '$HERE/car'})
self.assertEqual(c['z'], '/car')

def test_copy_dict(self):
c = Configure()
c.copy({'a': 1})
Expand Down

0 comments on commit a8a5c03

Please sign in to comment.