fix: ruff

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

View File

@@ -1,5 +1,4 @@
import os
from unittest.mock import MagicMock, Mock, patch
from unittest.mock import Mock, patch
import pytest

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

View File

@@ -1,4 +1,4 @@
from unittest.mock import MagicMock, Mock, PropertyMock, patch
from unittest.mock import MagicMock, Mock, patch
import pytest

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

View File

@@ -1,4 +1,4 @@
from unittest.mock import MagicMock, Mock, call, patch
from unittest.mock import MagicMock, Mock, patch
import pytest

View File

@@ -1,4 +1,4 @@
from unittest.mock import patch, MagicMock
from unittest.mock import patch
import pytest