AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
fix tests for 6d0e206
Reinier van der Leer616e29f5e47e
diff --git a/autogpt_platform/backend/backend/notifications/test_notifications.py b/autogpt_platform/backend/backend/notifications/test_notifications.pyindex 842c981474..a48dc0ed2e 100644--- a/autogpt_platform/backend/backend/notifications/test_notifications.py+++ b/autogpt_platform/backend/backend/notifications/test_notifications.py@@ -27,9 +27,10 @@ class TestNotificationErrorHandling:manager.email_sender._get_template = Mock(return_value=template_mock)# Mock the formattermanager.email_sender.formatter = Mock()- manager.email_sender.formatter.format_email = Mock(+ manager.email_sender.formatter.format_email = AsyncMock(return_value=("subject", "body content"))+ manager.email_sender.send_templated = AsyncMock()manager.email_sender.formatter.env = Mock()manager.email_sender.formatter.env.globals = {"base_url": "http://example.com"@@ -331,7 +332,7 @@ class TestNotificationErrorHandling:return ("subject", "x" * 5_000_000) # Over 4.5MB limitreturn ("subject", "normal sized content")- notification_manager.email_sender.formatter.format_email = Mock(+ notification_manager.email_sender.formatter.format_email = AsyncMock(side_effect=format_side_effect)