fix: fixes naming in chromadb test (#640)
<!-- .github/pull_request_template.md --> ## Description <!-- Provide a clear description of the changes in this PR --> ## DCO Affirmation I affirm that all code in every commit of this pull request conforms to the terms of the Topoteretes Developer Certificate of Origin <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Tests** - Revised test logic to align with updated conventions for retrieving database entities, ensuring accurate verification of database state. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
parent
69950a04dd
commit
f206edb83c
1 changed files with 1 additions and 2 deletions
|
|
@ -5,7 +5,6 @@ import cognee
|
|||
|
||||
from cognee.modules.data.models import Data
|
||||
from cognee.modules.search.types import SearchType
|
||||
from cognee.modules.retrieval.utils.brute_force_triplet_search import brute_force_triplet_search
|
||||
from cognee.modules.users.methods import get_default_user
|
||||
|
||||
logging.basicConfig(level=logging.DEBUG)
|
||||
|
|
@ -159,7 +158,7 @@ async def main():
|
|||
assert not os.path.isdir(data_directory_path), "Local data files are not deleted"
|
||||
|
||||
await cognee.prune.prune_system(metadata=True)
|
||||
tables_in_database = await vector_engine.get_table_names()
|
||||
tables_in_database = await vector_engine.get_collection_names()
|
||||
assert len(tables_in_database) == 0, "ChromaDB database is not empty"
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue