Files
llama-hub/tests/test_string_iterable.py
2023-09-25 18:43:52 -06:00

14 lines
464 B
Python

"""Check that the string iterable loader is working as expected."""
import sys
from pathlib import Path
from llama_hub.string_iterable.base import StringIterableReader
sys.path.append(Path(__file__).parent.parent)
def test_string_iterable() -> None:
"""Check that StringIterableReader works correctly."""
reader = StringIterableReader()
documents = reader.load_data(texts=["I went to the store", "I bought an apple"])
assert len(documents) == 2