fix: more test fixes and additions, fix loss on resume

This commit is contained in:
Alex committed 2026-08-22 12:57:58 +01:00
1 parent e96ff8658c
commit 29f661f3c7
24 files changed
+921 -85

No files matched your search

+2 -1
View File
@@ -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):