Skip to content

Commit

Permalink
test: Fix test for multimedia deduplication
Browse files Browse the repository at this point in the history
Add missing function to get data from database to multimedia deduplication test

Test COG-505
  • Loading branch information
dexters1 committed Dec 5, 2024
1 parent add6730 commit 9ba5d49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cognee/tests/test_deduplication.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ async def test_deduplication():
await cognee.add([explanation_file_path], dataset_name)
await cognee.add([explanation_file_path2], dataset_name2)

result = await relational_engine.get_all_data_from_table("data")
assert len(result) == 1, "More than one data entity was found."

await cognee.prune.prune_data()
Expand All @@ -90,6 +91,7 @@ async def test_deduplication():
await cognee.add([explanation_file_path], dataset_name)
await cognee.add([explanation_file_path2], dataset_name2)

result = await relational_engine.get_all_data_from_table("data")
assert len(result) == 1, "More than one data entity was found."

await cognee.prune.prune_data()
Expand Down

0 comments on commit 9ba5d49

Please sign in to comment.