clean up pytest.raises tests

This commit is contained in:
David Lord 2022-04-28 09:32:31 -07:00
parent ef7d01f0a0
commit ef6c2b9e4a
No known key found for this signature in database
GPG key ID: 7A1C87E3F5BC42A8
4 changed files with 25 additions and 22 deletions

View file

@ -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("/")