cmm: added options '--tight' and '--no-paging' to the 'hist --print' cmd
This commit was merged in pull request #16.
This commit is contained in:
+2
-2
@@ -147,7 +147,7 @@ class TestChat(TestChatBase):
|
||||
@patch('sys.stdout', new_callable=StringIO)
|
||||
def test_print(self, mock_stdout: StringIO) -> None:
|
||||
self.chat.msg_add([self.message1, self.message2])
|
||||
self.chat.print(paged=False)
|
||||
self.chat.print(paged=False, tight=True)
|
||||
expected_output = f"""{Question.txt_header}
|
||||
Question 1
|
||||
{Answer.txt_header}
|
||||
@@ -162,7 +162,7 @@ Answer 2
|
||||
@patch('sys.stdout', new_callable=StringIO)
|
||||
def test_print_with_metadata(self, mock_stdout: StringIO) -> None:
|
||||
self.chat.msg_add([self.message1, self.message2])
|
||||
self.chat.print(paged=False, with_metadata=True)
|
||||
self.chat.print(paged=False, with_metadata=True, tight=True)
|
||||
expected_output = f"""{TagLine.prefix} atag1 btag2
|
||||
FILE: 0001{msg_suffix}
|
||||
AI: FakeAI
|
||||
|
||||
Reference in New Issue
Block a user