mirror of
https://github.com/run-llama/fs-explorer.git
synced 2026-06-30 21:47:58 -04:00
chore: format and fix test
This commit is contained in:
@@ -66,12 +66,12 @@ async def parse_and_cache(directory: str, recursive: bool, to_skip: list[str]) -
|
||||
str((Path(root) / d).resolve())
|
||||
for d in dirs
|
||||
if d not in to_skip_resolved
|
||||
] # type: ignore[invalid-assignment]
|
||||
] # type: ignore[invalid-assignment]
|
||||
fls[:] = [
|
||||
str((Path(root) / f).resolve())
|
||||
for f in fls
|
||||
if f not in to_skip_resolved
|
||||
] # type: ignore[invalid-assignment]
|
||||
] # type: ignore[invalid-assignment]
|
||||
for fl in fls:
|
||||
files.append(str((Path(root) / fl).resolve()))
|
||||
semaphore = asyncio.Semaphore(5)
|
||||
|
||||
+1
-1
@@ -70,5 +70,5 @@ async def test_parse_file_without_api_key() -> None:
|
||||
content = await parse_file("data/testfile.txt")
|
||||
assert (
|
||||
content
|
||||
== "Not possible to parse data/testfile.txt as the necessary credentials (`LLAMA_CLOUD_API_KEY`) are not set in the environment"
|
||||
== "Not possible to parse data/testfile.txt because it has not been cached and the necessary credentials (`LLAMA_CLOUD_API_KEY`) are not set in the environment"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user