Files
dn20/ai_website_livechat/tests/test_ai_livechat_snippet_tour.py
2026-11-08 20:08:53 +08:00

13 lines
584 B
Python

from odoo.addons.ai.tests.common import mock_iap_results, TestAICommon
from odoo.tests import tagged, HttpCase
@tagged('post_install', '-at_install')
class TestAILivechatSnippet(HttpCase, TestAICommon):
def test_ai_livechat_snippet_tour(self):
mock_responses = [self.mock_text_response("This is a test response from AI.")]
with mock_iap_results(self.env, mock_responses):
self.env['ai.agent'].create({'name': 'Test Agent'})
self.start_tour(self.env["website"].get_client_action_url("/", True), 'ai_livechat_snippet_tour', login="admin")