Skip to content

Commit afe3d59

Browse files
committed
fix: test case issues on Windows
1 parent 3c9f16a commit afe3d59

File tree

105 files changed

+119
-13
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

105 files changed

+119
-13
lines changed

packages/qdrant-loader-mcp-server/src/qdrant_loader_mcp_server/search/enhanced/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,11 @@
2222
DocumentClusterAnalyzer,
2323
DocumentSimilarity,
2424
DocumentSimilarityCalculator,
25-
SimilarityMetric,
2625
)
2726
from .cross_document_intelligence import RelationshipType as CrossDocRelationshipType
27+
from .cross_document_intelligence import (
28+
SimilarityMetric,
29+
)
2830

2931
# 🔥 Dynamic Faceted Search Interface
3032
from .faceted_search import (

packages/qdrant-loader-mcp-server/tests/integration/test_real_end_to_end_phase2_3.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def mock_qdrant_client(self):
162162
}
163163
mock_scroll_results.append(mock_point)
164164

165-
# scroll method returns tuple: (list_of_points, next_page_offset)
166-
mock_client.scroll.return_value = (mock_scroll_results, None)
165+
# scroll method returns tuple: (list_of_points, next_page_offset) - must be async
166+
mock_client.scroll = AsyncMock(return_value=(mock_scroll_results, None))
167167

168168
return mock_client
169169

packages/qdrant-loader/src/qdrant_loader/core/state/models.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
from sqlalchemy import (
88
Boolean,
99
Column,
10+
)
11+
from sqlalchemy import DateTime as SQLDateTime
12+
from sqlalchemy import (
1013
Float,
1114
ForeignKey,
1215
Index,
@@ -16,7 +19,6 @@
1619
TypeDecorator,
1720
UniqueConstraint,
1821
)
19-
from sqlalchemy import DateTime as SQLDateTime
2022
from sqlalchemy.orm import declarative_base, relationship
2123

2224
from qdrant_loader.utils.logging import LoggingConfig

packages/qdrant-loader/src/qdrant_loader/core/text_processing/text_processor.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@
33
import nltk
44
import spacy
55
from langchain_text_splitters import RecursiveCharacterTextSplitter
6+
from spacy.cli.download import download
7+
68
from qdrant_loader.config import Settings
79
from qdrant_loader.utils.logging import LoggingConfig
8-
from spacy.cli.download import download
910

1011
logger = LoggingConfig.get_logger(__name__)
1112

packages/qdrant-loader/src/qdrant_loader/core/text_processing/topic_modeler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44

55
import spacy
66
from gensim import corpora, models
7-
from qdrant_loader.utils.logging import LoggingConfig
87
from spacy.cli.download import download
98

9+
from qdrant_loader.utils.logging import LoggingConfig
10+
1011
logger = LoggingConfig.get_logger(__name__)
1112

1213

packages/qdrant-loader/tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import pytest
1212
from dotenv import load_dotenv
13+
1314
from qdrant_loader.config import get_settings, initialize_config
1415

1516
# Add src to sys.path for package imports in tests

packages/qdrant-loader/tests/integration/connectors/publicdocs/test_publicdocs_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import pytest
88
import yaml
99
from bs4 import XMLParsedAsHTMLWarning
10+
1011
from qdrant_loader.config.types import SourceType
1112
from qdrant_loader.connectors.publicdocs.config import PublicDocsSourceConfig
1213
from qdrant_loader.connectors.publicdocs.connector import PublicDocsConnector

packages/qdrant-loader/tests/integration/core/chunking/test_chunking_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from unittest.mock import Mock, patch
55

66
import pytest
7+
78
from qdrant_loader.config import GlobalConfig, Settings
89
from qdrant_loader.core.chunking.chunking_service import ChunkingService
910
from qdrant_loader.core.chunking.strategy import MarkdownChunkingStrategy

packages/qdrant-loader/tests/integration/core/chunking/test_modular_chunking_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from unittest.mock import Mock
88

99
import pytest
10+
1011
from qdrant_loader.config import GlobalConfig, Settings
1112
from qdrant_loader.core.chunking.strategy.default.text_document_parser import (
1213
TextDocumentParser,

packages/qdrant-loader/tests/integration/core/state/test_state_management.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
import pytest
88
import pytest_asyncio
9+
910
from qdrant_loader.config.state import StateManagementConfig
1011
from qdrant_loader.core.document import Document
1112
from qdrant_loader.core.state.state_manager import StateManager

0 commit comments

Comments
 (0)