More DRYing up the test suite (#2325)
This commit is contained in:
parent
50c6df7098
commit
4ec1fbc9f5
10 changed files with 230 additions and 283 deletions
|
|
@ -76,11 +76,9 @@ def test_safe_join_toplevel_pardir():
|
|||
safe_join('/foo', '..')
|
||||
|
||||
|
||||
def test_aborting():
|
||||
def test_aborting(app):
|
||||
class Foo(Exception):
|
||||
whatever = 42
|
||||
app = flask.Flask(__name__)
|
||||
app.testing = True
|
||||
|
||||
@app.errorhandler(Foo)
|
||||
def handle_foo(e):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue