Esempio n. 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()
Esempio n. 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
Esempio n. 3
0
def test_health():
    geocoding.get_health()['status'] == 'pass'