Create a sample QueueMessage protobuf
(sample_client)
| 117 | |
| 118 | @pytest.fixture |
| 119 | def sample_queue_message(sample_client): |
| 120 | """Create a sample QueueMessage protobuf""" |
| 121 | msg = QueueMessage() |
| 122 | msg.client_id = sample_client.id |
| 123 | msg.agent_id = "agent-789" |
| 124 | |
| 125 | proto_msg = ProtoMessageCreate() |
| 126 | proto_msg.role = ProtoMessageCreate.ROLE_USER |
| 127 | proto_msg.text_content = "Test message" |
| 128 | msg.input_messages.append(proto_msg) |
| 129 | |
| 130 | msg.chaining = True |
| 131 | msg.verbose = False |
| 132 | |
| 133 | return msg |
| 134 | |
| 135 | |
| 136 | @pytest_asyncio.fixture |
nothing calls this directly
no test coverage detected