Esempio n. 1
0
def test_features_with_different_format():
    add(method=GET,
        url=
        "https://api.mapbox.com/v4/mapbox.streets/features.kml?access_token=pk.test",
        match_querystring=True,
        body="<xml></xml>",
        status=200)

    maps = Maps(access_token="pk.test")

    response = maps.features("mapbox.streets", feature_format="kml")

    assert response.status_code == 200
Esempio n. 2
0
def test_features():
    add(method=GET,
        url=
        "https://api.mapbox.com/v4/mapbox.streets/features.json?access_token=pk.test",
        match_querystring=True,
        body="{\"key\": \"value\"}",
        status=200)

    maps = Maps(access_token="pk.test")

    response = maps.features("mapbox.streets", )

    assert response.status_code == 200