test: Add verification of deletion of local files

Verify local files used in end to end test are deleted upon completion

Test COG-488
This commit is contained in:
Igor Ilic 2024-11-20 17:27:12 +01:00
parent b60f2603f4
commit 796bbadb43

View file

@ -90,6 +90,8 @@ async def main():
assert len(history) == 6, "Search history is not correct."
await cognee.prune.prune_data()
assert not os.path.isdir(data_directory_path), "Local files are not deleted"
await cognee.prune.prune_system(metadata=True)
tables_in_database = await vector_engine.get_table_names()
assert len(tables_in_database) == 0, "The database is not empty"