Fix lint issues: suppress unused chromadb import warnings and update remaining external memory test

Co-Authored-By: João <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-30 09:45:39 +00:00
parent 5566f4716b
commit 6b354201cb
4 changed files with 20 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ from crewai.task import Task
def short_term_memory():
"""Fixture to create a ShortTermMemory instance"""
try:
import chromadb
import chromadb # noqa: F401
HAS_CHROMADB = True
except ImportError:
HAS_CHROMADB = False
@@ -39,7 +39,7 @@ def short_term_memory():
def test_save_and_search(short_term_memory):
try:
import chromadb
import chromadb # noqa: F401
HAS_CHROMADB = True
except ImportError:
HAS_CHROMADB = False