Skip to content

Commit

Permalink
Update test_iterator to consume ConfigEntr[ies]
Browse files Browse the repository at this point in the history
  • Loading branch information
thecjharries committed Mar 17, 2018
1 parent e7798bb commit 52de16a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ def test_iterator(self):
config = self.repo.config
lst = {}

for name in config:
lst[name] = config[name]
for entry in config:
self.assertGreater(entry.level, -1)
lst[entry.name] = entry.value_string

self.assertTrue('core.bare' in lst)
self.assertTrue(lst['core.bare'])
Expand Down

0 comments on commit 52de16a

Please sign in to comment.