Skip to content

Commit

Permalink
Patch the correct function reference used by the caller in test_excep…
Browse files Browse the repository at this point in the history
…tions_are_propagated_up
  • Loading branch information
yoldas committed Mar 11, 2024
1 parent 83f0ed7 commit b8db6e8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/helpers/test_dart.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ 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.db.dart.create_dart_connection", side_effect=Exception()):
with patch("lighthouse.helpers.dart.create_dart_connection", side_effect=Exception("test exception")):
with raises(Exception):
found = find_dart_source_samples_rows("unknown")
assert found is None
find_dart_source_samples_rows("unknown")

0 comments on commit b8db6e8

Please sign in to comment.