Skip to content

Commit ecc4c77

Browse files
committed
fix integration tests.
1 parent 74cdc5a commit ecc4c77

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

packages/graphrag/graphrag/config/defaults.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ class StorageDefaults:
232232
"""Default values for storage."""
233233

234234
type: str = StorageType.FILE
235+
encoding: str | None = None
235236
base_dir: str | None = None
236237
connection_string: None = None
237238
container_name: None = None

tests/integration/storage/test_blob_storage.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -41,25 +41,10 @@ async def test_find():
4141
storage._delete_container() # noqa: SLF001
4242

4343

44-
async def test_dotprefix():
45-
storage = AzureBlobStorage(
46-
connection_string=WELL_KNOWN_BLOB_STORAGE_KEY,
47-
container_name="testfind",
48-
path_prefix=".",
49-
)
50-
try:
51-
await storage.set("input/christmas.txt", "Merry Christmas!", encoding="utf-8")
52-
items = list(storage.find(file_pattern=re.compile(r".*\.txt$")))
53-
assert items == ["input/christmas.txt"]
54-
finally:
55-
storage._delete_container() # noqa: SLF001
56-
57-
5844
async def test_get_creation_date():
5945
storage = AzureBlobStorage(
6046
connection_string=WELL_KNOWN_BLOB_STORAGE_KEY,
6147
container_name="testfind",
62-
path_prefix=".",
6348
)
6449
try:
6550
await storage.set("input/christmas.txt", "Merry Christmas!", encoding="utf-8")

0 commit comments

Comments
 (0)