mirror of
https://github.com/tiennm99/DocsGPT.git
synced 2026-10-18 10:14:24 +00:00
fix: more test fixes and additions, fix loss on resume
This commit is contained in:
1 parent
e96ff8658c
commit
29f661f3c7
24 files changed
+921
-85
No files matched your search
@@ -845,8 +845,9 @@ class TestEmbeddingPipeline:
|
||||
|
||||
def test_embed_and_store_empty_docs(self):
|
||||
from application.parser.embedding_pipeline import embed_and_store_documents
|
||||
from application.parser.file.base_parser import DocumentParseError
|
||||
|
||||
with pytest.raises(ValueError, match="No text could be extracted"):
|
||||
with pytest.raises(DocumentParseError, match="No text could be extracted"):
|
||||
embed_and_store_documents([], "/tmp/test", "src1", MagicMock())
|
||||
|
||||
def test_embed_and_store_creates_folder(self, tmp_path):
|
||||
|
||||
Reference in new issue
Block a user