Mock conversation for testing.
| 59 | |
| 60 | @dataclass |
| 61 | class MockConversation: |
| 62 | """Mock conversation for testing.""" |
| 63 | |
| 64 | messages: list = None |
| 65 | |
| 66 | def __post_init__(self): |
| 67 | if self.messages is None: |
| 68 | self.messages = [] |
| 69 | |
| 70 | def clear(self): |
| 71 | self.messages.clear() |
| 72 | |
| 73 | |
| 74 | class TestArgumentSubstitution(unittest.TestCase): |