From 2ecfa274c9200111d6844aad60ca4713b61db3bd Mon Sep 17 00:00:00 2001 From: Takuma Yoneda Date: Tue, 18 Apr 2023 12:44:11 -0500 Subject: [PATCH] remove test for remove_recursively function --- tests/test_config.py | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/tests/test_config.py b/tests/test_config.py index c418d50..f05bc7f 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -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): @@ -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()