forked from orbit-oss/flask
clean up pytest.raises tests
This commit is contained in:
parent
ef7d01f0a0
commit
ef6c2b9e4a
4 changed files with 25 additions and 22 deletions
|
|
@ -120,7 +120,7 @@ def test_app_tearing_down_with_unhandled_exception(app, client):
|
|||
def index():
|
||||
raise Exception("dummy")
|
||||
|
||||
with pytest.raises(Exception):
|
||||
with pytest.raises(Exception, match="dummy"):
|
||||
with app.app_context():
|
||||
client.get("/")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue