コード例 #1
0
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()
コード例 #2
0
def add_geodata(entity):
    if is_geo_coding_available():
        cache = get_geo_cache()
        geocoding.add_location(entity, cache=cache)
コード例 #3
0
def test_get_geo_cache(enable_geo_caching):
    assert factory.get_geo_cache() is not None