Skip to content
This repository has been archived by the owner on Jun 26, 2021. It is now read-only.

Commit

Permalink
Merge pull request #227 from delira-dev/fix_config_test
Browse files Browse the repository at this point in the history
Rewrite Config Test
  • Loading branch information
justusschock authored Oct 17, 2019
2 parents 176acb7 + f61812c commit f6efdd7
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tests/utils/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,15 @@ def test_nested_lookpup(self):
cf.nested_get("deep")

multiple_val = cf.nested_get("deep", allow_multiple=True)
self.assertEqual(multiple_val, [{"deepStr": "b", "deepNum": 2},
"duplicate"])

expected_result = [{"deepStr": "b", "deepNum": 2},
"duplicate"]

for val in multiple_val:
self.assertIn(val, expected_result)
expected_result.pop(expected_result.index(val))

self.assertEquals(len(expected_result), 0)


class DeliraConfigTest(LookupConfigTest):
Expand Down

0 comments on commit f6efdd7

Please sign in to comment.