Skip to content

Commit

Permalink
remove test for remove_recursively function
Browse files Browse the repository at this point in the history
  • Loading branch information
takuma-yoneda committed Apr 18, 2023
1 parent 09aa915 commit 2ecfa27
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tests/test_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
import unittest
from lmn.helpers import parse_config, merge_nested_dict, remove_recursively
from lmn.helpers import parse_config, merge_nested_dict

class TestMergeDicts(unittest.TestCase):
def test_flat_dict(self):
Expand Down Expand Up @@ -60,19 +60,5 @@ def test_nested_dict_dup2(self):
self.assertDictEqual(gold, merged)


class TestRemoveRecursively(unittest.TestCase):
def test_remove_recursively(self):
a = {
'__help': 'hoge',
'key1': 'val1',
'key2': {'__help': 'fuga', 'key2-1': 'val2-1'}
}
gold = {
'key1': 'val1',
'key2': {'key2-1': 'val2-1'}
}
cleaned = remove_recursively(a, key='__help')
self.assertDictEqual(cleaned, gold)

if __name__ == '__main__':
unittest.main()

0 comments on commit 2ecfa27

Please sign in to comment.