|
19 | 19 | from use_case_executor.domain.flow.node_data.agent_handover_data import (
|
20 | 20 | AgentHandoverData,
|
21 | 21 | )
|
22 |
| -from use_case_executor.domain.flow.node_data.agent_handover_data import ( |
23 |
| - HandoverFailureQuickReply, |
24 |
| -) |
25 | 22 | from use_case_executor.domain.flow.node_data.node_type import NodeType
|
| 23 | +from use_case_executor.domain.flow.node_data.quick_reply import QuickReply |
26 | 24 | from use_case_executor.domain.flow_execution.answer import Answer
|
27 | 25 | from use_case_executor.domain.flow_execution.execution_environment import (
|
28 | 26 | ExecutionEnvironment,
|
@@ -63,12 +61,12 @@ def flow(
|
63 | 61 | node for node in _flow.get_nodes() if node.type == NodeType.agent_handover
|
64 | 62 | )
|
65 | 63 | handover_node.data.handover_failure_quick_replies = [
|
66 |
| - HandoverFailureQuickReply( |
| 64 | + QuickReply( |
67 | 65 | target_use_case_uuid=target_use_case_uuid,
|
68 | 66 | target_intent_record_id=None,
|
69 | 67 | title_translations={content_language: "Content language V2 QR"},
|
70 | 68 | ),
|
71 |
| - HandoverFailureQuickReply( |
| 69 | + QuickReply( |
72 | 70 | target_use_case_uuid=None,
|
73 | 71 | target_intent_record_id=target_intent_record_id,
|
74 | 72 | title_translations={content_language: "Content language Advanced QR"},
|
@@ -142,7 +140,7 @@ def test_flow_returns_failure_answer_if_agent_unavailable(
|
142 | 140 | mocker=mocker, return_value=False
|
143 | 141 | )
|
144 | 142 | if use_latest is False:
|
145 |
| - mock_repository.set_filter_use_case_uuids_without_production_version( |
| 143 | + mock_repository.set_filter_use_case_uuids_without_production_version_return_value( |
146 | 144 | mocker=mocker,
|
147 | 145 | return_value={target_use_case_uuid} if has_production_version else set(),
|
148 | 146 | )
|
@@ -305,7 +303,7 @@ def test_flow_raises_if_target_use_case_uuid_and_target_intent_record_id_are_bot
|
305 | 303 |
|
306 | 304 | with pytest.raises(
|
307 | 305 | InvalidFlowConfiguration,
|
308 |
| - match="the use case to send the customer to is not filled for an agent handover quick reply", |
| 306 | + match="the use case to send the customer to is not filled for an agent handover failure quick reply", |
309 | 307 | ):
|
310 | 308 | facade.execute_flow_from_position(
|
311 | 309 | flow=flow,
|
|
0 commit comments