From 74df19d86e4b80751a870a1aa1900249b5d6e0c1 Mon Sep 17 00:00:00 2001 From: yoldas Date: Mon, 11 Mar 2024 20:05:52 +0000 Subject: [PATCH] Assert for a more specific exception in test_exceptions_are_propagated_up --- tests/helpers/test_dart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/helpers/test_dart.py b/tests/helpers/test_dart.py index 60165922..df07a165 100644 --- a/tests/helpers/test_dart.py +++ b/tests/helpers/test_dart.py @@ -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")