Skip to content

Commit

Permalink
Assert for a more specific exception in test_exceptions_are_propagate…
Browse files Browse the repository at this point in the history
…d_up
  • Loading branch information
yoldas committed Mar 11, 2024
1 parent b8db6e8 commit 74df19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/helpers/test_dart.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ def test_find_dart_source_samples_rows_not_found_barcode(app, dart_samples):
def test_exceptions_are_propagated_up(app, dart_samples):
with app.app_context():
with patch("lighthouse.helpers.dart.create_dart_connection", side_effect=Exception("test exception")):
with raises(Exception):
with raises(Exception, match="test exception"):
find_dart_source_samples_rows("unknown")

0 comments on commit 74df19d

Please sign in to comment.