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