fix: ruff

This commit is contained in:
Alex committed 2026-03-26 18:48:53 +00:00
1 parent 5f0d39e5f1
commit c726eb8ebd
6 files changed
+6 -9

No files matched your search

+1 -2
View File
@@ -1,5 +1,4 @@
import os
from unittest.mock import MagicMock, Mock, patch
from unittest.mock import Mock, patch
import pytest
+1 -3
View File
@@ -1,7 +1,5 @@
import io
import os
import tempfile
from unittest.mock import MagicMock, Mock, PropertyMock, call, mock_open, patch
from unittest.mock import Mock, patch
import pytest
+1 -1
View File
@@ -1,4 +1,4 @@
from unittest.mock import MagicMock, Mock, PropertyMock, patch
from unittest.mock import MagicMock, Mock, patch
import pytest
+1 -1
View File
@@ -97,7 +97,7 @@ class TestMongoDBVectorStoreAddTexts:
inserted_ids=list(range(100))
)
result = store.add_texts(texts, metadatas)
store.add_texts(texts, metadatas)
# Should have been called twice: batch of 100, then batch of 50
assert mock_collection.insert_many.call_count == 2
+1 -1
View File
@@ -1,4 +1,4 @@
from unittest.mock import MagicMock, Mock, call, patch
from unittest.mock import MagicMock, Mock, patch
import pytest
+1 -1
View File
@@ -1,4 +1,4 @@
from unittest.mock import patch, MagicMock
from unittest.mock import patch
import pytest