(test_dict: Dict)
| 138 | |
| 139 | |
| 140 | def normalize_dict(test_dict: Dict) -> Dict: |
| 141 | res = dict() |
| 142 | for key in test_dict.keys(): |
| 143 | if isinstance(test_dict[key], dict): |
| 144 | res[key.lower()] = normalize_dict(test_dict[key]) |
| 145 | else: |
| 146 | if test_dict[key] is None: |
| 147 | test_dict[key] = "unknown" |
| 148 | res[key.lower()] = test_dict[key] |
| 149 | return res |
| 150 | |
| 151 | |
| 152 | def retry( |
no test coverage detected