We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Surface tests are failing. Worth considering if we should bother fixing this as the API is deprecated and slated to be removed soon anyways.
pytest tests/test_surface.py
tests pass
The URL expected by the responses mock is something like
responses
https://api.mapbox.com/v4/surface/mapbox.mapbox-terrain-v1.json?access_token=bogus &layer=contour&fields=ele&geojson=true&interpolate=true&zoom=14 &points=-112.084004%2C36.05322%3B-112.083914%2C36.053573%3B-112.083965%2C36.053845
but the URL constructed by the SDK is slightly different in order and rounding of coordinates:
https://api.mapbox.com/v4/surface/mapbox.mapbox-terrain-v1.json?access_token=bogus &points=-112.084004%2C36.053220%3B-112.083914%2C36.053573%3B-112.083965%2C36.053845 &geojson=true&fields=ele&layer=contour&zoom=14&interpolate=true
Resuling in this test failure
> assert result.exit_code == 0 E AssertionError: assert -1 == 0 E + where -1 = <Result ConnectionError('Connection refused: GET https://api.mapbox.com/v4/surface/mapbox.mapbox-terrain-v1.json?acces...son=true&interpolate=true&zoom=14&points=-112.084004%2C36.05322%3B-112.083914%2C36.053573%3B-112.083965%2C36.053845',)>.exit_code
mapboxcli
mapbox
pip install -e .
The text was updated successfully, but these errors were encountered:
Given that the Surface API is deprecated, we should avoid putting any effort into these tests and instead remove mapbox surface in the next release.
mapbox surface
Changing title to reflect the new scope.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Surface tests are failing. Worth considering if we should bother fixing this as the API is deprecated and slated to be removed soon anyways.
What you've tried already
Expected outcome
tests pass
Actual outcome
The URL expected by the
responses
mock is something likebut the URL constructed by the SDK is slightly different in order and rounding of coordinates:
Resuling in this test failure
Other information
mapboxcli
andmapbox
: 0.7 and 0.16 respectivelypip install -e .
from masterThe text was updated successfully, but these errors were encountered: