diff --git a/src/fs_explorer/caching.py b/src/fs_explorer/caching.py index 4f7ad8f..72710b0 100644 --- a/src/fs_explorer/caching.py +++ b/src/fs_explorer/caching.py @@ -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) diff --git a/tests/test_fs.py b/tests/test_fs.py index 399d013..e61370d 100644 --- a/tests/test_fs.py +++ b/tests/test_fs.py @@ -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" )