From fe1e1442f1c6c562e7f971a58375b1c63b9390b9 Mon Sep 17 00:00:00 2001 From: Kenneth Kehl <@kkehl@flexion.us> Date: Tue, 1 Jul 2025 14:57:52 -0700 Subject: [PATCH] more tests --- tests/app/celery/test_tasks.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/app/celery/test_tasks.py b/tests/app/celery/test_tasks.py index f1591f81d..f9d48aced 100644 --- a/tests/app/celery/test_tasks.py +++ b/tests/app/celery/test_tasks.py @@ -1789,7 +1789,7 @@ def test_save_api_email_or_sms_sqlalchemy_error_with_max_retries(): "app.celery.tasks.current_app.logger.exception" ) as mock_exception: - with pytest.raises(SQLAlchemyError): - save_api_email_or_sms(mock_self, encrypted) - mock_exception.assert_called_once() - assert "Max retry failed" in mock_exception.call_args[0][0] + + save_api_email_or_sms(mock_self, encrypted) + mock_exception.assert_called_once() + assert "Max retry failed" in mock_exception.call_args[0][0]