Skip to content

Commit

Permalink
only clean-up azurite containers locally
Browse files Browse the repository at this point in the history
  • Loading branch information
darthtrevino committed Apr 2, 2024
1 parent 32537df commit 56e582b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/graphrag/tests/smoke/test_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,11 @@ async def prepare_azurite_data(input_path: str, azure: dict) -> Callable[[], Non
)
await input_storage.set(file_path, text, encoding="utf-8")

return lambda: input_storage.delete_container()
def dispose():
if BLOB_CONNECTION_STRING == WELL_KNOWN_AZURITE_CONNECTION_STRING:
input_storage.delete_container()

return dispose


class TestIndexer:
Expand Down

0 comments on commit 56e582b

Please sign in to comment.