Example #1
0
def check_geocoder():
    """
    Geocoder is relevant only when geocoding usage is enabled.
    """
    if not is_geo_coding_available():
        return {'status': 'pass'}

    return geocoding.get_health()
Example #2
0
def check_geocoder():
    """
    Geocoder is relevant only when geocoding usage is enabled.
    """
    use_geocoding = os.environ.get('USE_GEOCODING', False)
    if not use_geocoding:
        return {'status': 'pass'}

    from geocoding import geocoding
    health = geocoding.get_health()
    return health
def test_health():
    geocoding.get_health()['status'] == 'pass'