more tests

This commit is contained in:
Kenneth Kehl
2025-07-01 14:57:52 -07:00
parent c47e202491
commit fe1e1442f1

View File

@@ -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]