def test_merge_extractor(self): api_extrators = [{"var1": "val1"}, {"var2": "val2"}] current_extractors = [{"var1": "val111"}, {"var3": "val3"}] merged_extractors = loader._merge_extractor(api_extrators, current_extractors) self.assertIn({"var1": "val111"}, merged_extractors) self.assertIn({"var2": "val2"}, merged_extractors) self.assertIn({"var3": "val3"}, merged_extractors)
def test_merge_extractor(self): api_extrators = [{'var1': 'val1'}, {'var2': 'val2'}] current_extrators = [{'var1': 'val111'}, {'var3': 'val3'}] merged_extrators = loader._merge_extractor(api_extrators, current_extrators) assert {'var1': 'val111'} in merged_extrators assert {'var2': 'val2'} in merged_extrators assert {'var3': 'val3'} in merged_extrators