Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

467 B
Raw Blame
from unittest.mock import MagicMock

from services.entities.mail_entities import InnerMailMessage
from services.inner_mail_service import InnerMailService


def test_inner_mail_service_delegates_to_dispatcher() -> None:
    dispatch = MagicMock()
    service = InnerMailService(dispatch=dispatch)
    message = InnerMailMessage(recipients=("[email protected]",), subject="Subject", body="Body")

    service.send(message)

    dispatch.assert_called_once_with(message)