forked from orbit-oss/flask
clear KeyError in production for Werkzeug 0.15
This commit is contained in:
parent
f7e7f2ab11
commit
49efc44233
2 changed files with 12 additions and 11 deletions
|
|
@ -1045,7 +1045,7 @@ def test_trapping_of_bad_request_key_errors(app, client):
|
|||
with pytest.raises(KeyError) as e:
|
||||
client.get("/key")
|
||||
assert e.errisinstance(BadRequest)
|
||||
assert 'missing_key' in e.value.description
|
||||
assert 'missing_key' in e.value.get_description()
|
||||
rv = client.get('/abort')
|
||||
assert rv.status_code == 400
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue