forked from orbit-oss/flask
Don't only catch BadRequest key errors but all bad request errors.
This commit is contained in:
parent
505cd663cd
commit
acac64e36a
3 changed files with 13 additions and 11 deletions
|
|
@ -601,7 +601,7 @@ class BasicFunctionalityTestCase(unittest.TestCase):
|
|||
c = app.test_client()
|
||||
assert c.get('/fail').status_code == 400
|
||||
|
||||
app.config['TRAP_BAD_REQUEST_KEY_ERRORS'] = True
|
||||
app.config['TRAP_BAD_REQUEST_ERRORS'] = True
|
||||
c = app.test_client()
|
||||
try:
|
||||
c.get('/fail')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue