A message object that has a to_dict() method.
(role: str = "user", content: str = "hello")
| 29 | |
| 30 | |
| 31 | def _make_message_obj(role: str = "user", content: str = "hello") -> MagicMock: |
| 32 | """A message object that has a to_dict() method.""" |
| 33 | m = MagicMock() |
| 34 | m.to_dict.return_value = {"role": role, "content": content} |
| 35 | return m |
| 36 | |
| 37 | |
| 38 | def _make_tracker( |
no outgoing calls
no test coverage detected