def test_geohash_grid_aggregation():
    a = aggs.GeohashGrid(**{"field": "centroid", "precision": 3})

    assert {
        "geohash_grid": {
            "field": "centroid",
            "precision": 3
        }
    } == a.to_dict()
Exemple #2
0
def test_geohash_grid_aggregation():
    a = aggs.GeohashGrid(**{'field': 'centroid', 'precision': 3})

    assert {
        'geohash_grid': {
            'field': 'centroid',
            'precision': 3
        }
    } == a.to_dict()