parent
5b309831ec
commit
025589ee76
63 changed files with 3784 additions and 3459 deletions
|
|
@ -23,11 +23,11 @@ def test_suppressed_exception_logging():
|
|||
out = StringIO()
|
||||
app = SuppressedFlask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
@app.route("/")
|
||||
def index():
|
||||
raise Exception('test')
|
||||
raise Exception("test")
|
||||
|
||||
rv = app.test_client().get('/', errors_stream=out)
|
||||
rv = app.test_client().get("/", errors_stream=out)
|
||||
assert rv.status_code == 500
|
||||
assert b'Internal Server Error' in rv.data
|
||||
assert b"Internal Server Error" in rv.data
|
||||
assert not out.getvalue()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue