tests: adjust to change in error message details

This commit is contained in:
Frédéric Péters 2023-01-13 10:41:04 +01:00
parent a172e0a0bd
commit e9a5e14196
1 changed files with 1 additions and 4 deletions

View File

@ -298,10 +298,7 @@ def test_get_geojson(app, layer, user):
# 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 scheme supplied. "
"Perhaps you meant http://geojson?t1?)"
)
assert resp.json['_combo_err_desc'].startswith("Bad response from requested URL (Invalid URL")
layer.geojson_url = 'http://example.org/geojson?t1'
layer.save()