chore: format and fix test

This commit is contained in:
Clelia (Astra) Bertelli
2026-01-07 14:26:32 +01:00
parent 743a0b1b2b
commit 5abc97790d
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -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
View File
@@ -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"
)