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.

669 B
Raw Blame
from pytest_mock import MockerFixture

from services.account.adapters import BillingAccountDeletionFeedbackGateway
from services.account_deletion_feedback_service import AccountDeletionFeedbackService
from services.billing_service import BillingService


def test_submit_delegates_to_billing_gateway(mocker: MockerFixture) -> None:
    submit = mocker.patch.object(BillingService, "update_account_deletion_feedback")
    service = AccountDeletionFeedbackService(feedback=BillingAccountDeletionFeedbackGateway())

    service.submit(email="[email protected]", feedback="No longer needed")

    submit.assert_called_once_with("[email protected]", "No longer needed")