Skip to content

Commit a4063f9

Browse files
update custom text vectorizer validations to lazy init/eval for async methods
1 parent 0706509 commit a4063f9

File tree

3 files changed

+220
-222
lines changed

3 files changed

+220
-222
lines changed

conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@
55
from testcontainers.compose import DockerCompose
66

77

8+
@pytest.fixture(autouse=True)
9+
def set_tokenizers_parallelism():
10+
"""Disable tokenizers parallelism in tests to avoid deadlocks"""
11+
os.environ["TOKENIZERS_PARALLELISM"] = "false"
12+
13+
814
@pytest.fixture(scope="session", autouse=True)
915
def redis_container(request):
1016
"""

0 commit comments

Comments
 (0)