mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-11 09:08:31 +00:00
enabling local files to work and type cleanup
This commit is contained in:
@@ -575,3 +575,11 @@ def test_multiple_docling_sources():
|
||||
|
||||
assert docling_source.file_paths == urls
|
||||
assert docling_source.content is not None
|
||||
|
||||
|
||||
def test_docling_source_with_local_file():
|
||||
current_dir = Path(__file__).parent
|
||||
pdf_path = current_dir / "crewai_quickstart.pdf"
|
||||
docling_source = DoclingSource(file_paths=[str(pdf_path.name)])
|
||||
assert docling_source.file_paths == [str(pdf_path.name)]
|
||||
assert docling_source.content is not None
|
||||
|
||||
Reference in New Issue
Block a user