File tree Expand file tree Collapse file tree 2 files changed +1
-15
lines changed
packages/graphrag/graphrag/config
tests/integration/storage Expand file tree Collapse file tree 2 files changed +1
-15
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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-
5844async 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" )
You can’t perform that action at this time.
0 commit comments