def check_geocache(): """ Geocache is relevant only when geocoding usage is enabled. """ if not is_geo_coding_available(): return {'status': 'pass'} cache = get_geo_cache() return cache.get_health()
def add_geodata(entity): if is_geo_coding_available(): cache = get_geo_cache() geocoding.add_location(entity, cache=cache)
def test_get_geo_cache(enable_geo_caching): assert factory.get_geo_cache() is not None