avoid recent Python dialect

This commit is contained in:
Sarah Hoffmann
2023-03-09 20:57:43 +01:00
parent b730d286ad
commit 93203f355a

View File

@@ -84,7 +84,8 @@ class GenericResponse:
assert set(r.keys()) == {'geocoding', 'geojson', '__geocoding'}, \
f"Unexpected keys in result: {r.keys()}"
check_for_attributes(r['geocoding'], 'geojson', 'absent')
r |= r.pop('geocoding')
inner = r.pop('geocoding')
r.update(inner)
def assert_address_field(self, idx, field, value):