tests: update error message test to match new python-requests version

This commit is contained in:
Frédéric Péters 2022-01-03 19:08:50 +01:00
parent c857d0a741
commit fd8bc9d51f
1 changed files with 2 additions and 2 deletions

View File

@ -288,11 +288,11 @@ def test_get_geojson(app, layer, user):
geojson_url = reverse('mapcell-geojson', kwargs={'cell_id': cell.id, 'layer_slug': layer.slug})
# invalid url - missing schema
# invalid url - missing scheme
resp = app.get(geojson_url)
assert len(resp.json['features']) == 0
assert resp.json['_combo_err_desc'] == (
"Bad response from requested URL (Invalid URL 'geojson?t1': No schema supplied. "
"Bad response from requested URL (Invalid URL 'geojson?t1': No scheme supplied. "
"Perhaps you meant http://geojson?t1?)"
)