Skip to content

Commit 0f70c85

Browse files
committed
fix test on nltk
1 parent f5a955e commit 0f70c85

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/unit/indexing/operations/chunk_text/test_strategies.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@
44
from unittest.mock import Mock, patch
55

66
from graphrag.config.models.chunking_config import ChunkingConfig
7+
from graphrag.index.bootstrap import bootstrap
78
from graphrag.index.operations.chunk_text.strategies import run_sentences, run_tokens
89
from graphrag.index.operations.chunk_text.typing import TextChunk
910

1011

1112
class TestRunSentences:
13+
def setup_method(self, method):
14+
bootstrap()
15+
1216
def test_basic_functionality(self):
1317
"""Test basic sentence splitting without metadata"""
1418
input = ["This is a test. Another sentence."]

0 commit comments

Comments
 (0)