Skip to content
Myr

failing test

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Lord · committed by David Lord · parent 706e67e · Browse files · 1 file+33 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+33 added−0 removed

  • tests:+33 added−0 removed

1 file+33 added−0 removed

modified:tests/test_basic.py+33 added
978 unmodified lines
979 assert client.get('/2').data == b'apple'980 assert client.get('/3').data == b'apple'981982983def test_errorhandler_precedence(app, client):984 class E1(Exception):985 pass986987 class E2(Exception):988 pass989990 class E3(E1, E2):991 pass992993 @app.errorhandler(E2)994 def handle_e2(e):995 return 'E2'996997 @app.errorhandler(Exception)998 def handle_exception(e):999 return 'Exception'10001001 @app.route('/E1')1002 def raise_e1():1003 raise E110041005 @app.route('/E3')1006 def raise_e3():1007 raise E310081009 rv = client.get('/E1')1010 assert rv.data == b'Exception'10111012 rv = client.get('/E3')1013 assert rv.data == b'E2'101410151016def test_trapping_of_bad_request_key_errors(app, client):1017 @app.route('/fail')1018 def fail():1019 flask.request.form['missing_key']
846 unmodified lines