Add --glob and --location flags to hist and question commands, to be able to specify the location and files they should use.
This commit is contained in:
+2
-1
@@ -240,7 +240,8 @@ class TestChatDB(TestChatBase):
|
||||
msg_to_file_force_suffix(duplicate_message)
|
||||
with self.assertRaises(ChatError) as cm:
|
||||
ChatDB.from_dir(pathlib.Path(self.cache_path.name),
|
||||
pathlib.Path(self.db_path.name))
|
||||
pathlib.Path(self.db_path.name),
|
||||
glob='*')
|
||||
self.assertEqual(str(cm.exception), "Validation failed")
|
||||
|
||||
def test_file_path_ID_exists(self) -> None:
|
||||
|
||||
@@ -234,6 +234,8 @@ class TestQuestionCmd(TestWithFakeAI):
|
||||
# create a mock argparse.Namespace
|
||||
self.args = argparse.Namespace(
|
||||
ask=['What is the meaning of life?'],
|
||||
glob=None,
|
||||
location='db',
|
||||
num_answers=1,
|
||||
output_tags=['science'],
|
||||
AI='FakeAI',
|
||||
|
||||
Reference in New Issue
Block a user