from unittest.mock import ANY, call, patch

from callisto_core.tests.test_base import (
    ReportFlowHelper as ReportFlowTestCase,
)
from callisto_core.tests.utils.api import CustomNotificationApi


class NotificationViewTest(
    ReportFlowTestCase,
):

    def test_submit_confirmation_admin_email(self):
        with patch.object(CustomNotificationApi, '_logging') as api_logging:
            self.client_post_report_creation()
            self.client_post_reporting_end_step()
            api_logging.assert_has_calls([
                call(email_name='submit_confirmation_callisto_team'),
                call(report=self.report),
            ], any_order=True)

    def test_submit_confirmation_user_email(self):
        with patch.object(CustomNotificationApi, '_logging') as api_logging:
            self.client_post_report_creation()
            self.client_post_reporting_end_step()
            api_logging.assert_has_calls([
                call(notification_name='submit_confirmation'),
            ], any_order=True)

    def test_submit_confirmation_slack_notification(self):
        with patch.object(CustomNotificationApi, 'slack_notification') as api_logging:
            self.client_post_report_creation()
            self.client_post_reporting_end_step()
            api_logging.assert_has_calls([
                call(msg=ANY, type='submit_confirmation'),
            ], any_order=True)

@@ -191,16 +191,84 @@
 tionApi%0A
+from callisto_core.reporting.views import ReportingConfirmationView%0A
 %0A%0Aclass 
@@ -611,54 +611,77 @@
 all(
-email_name='submit_confirmation_callisto_team'
+notification_name=ReportingConfirmationView.admin_email_template_name
 ),%0A 

update assertion