Nominatim tests: fix failing pickpoint extratags test
@@ -269,7 +269,13 @@ class BaseNominatimTestCase(with_metaclass(ABCMeta, object)):
{"query": query, "extratags": True},
{},
)
- self.assertEqual(location.raw['extratags']['wikidata'], 'Q220728')
+ # Nominatim and OpenMapQuest contain the following in extratags:
+ # {'wikidata': 'Q220728', 'wikipedia': 'en:Flatiron Building'}
+ # But PickPoint *sometimes* returns the following instead:
+ # {'wikidata': 'Q1427377'}
+ # So let's simply consider just having the `wikidata` key
+ # in response a success.
+ self.assertTrue(location.raw['extratags']['wikidata'])
class NominatimTestCase(BaseNominatimTestCase, GeocoderTestBase):
