def test_uniprot_reader_lazy(test_file: str) -> None:
    """Test lazy loading of UniProt records."""
    reader = UniProtReader()
    documents = list(reader.lazy_load_data(test_file))

    assert len(documents) == 1
    doc = documents[0]

    # Check text content
    assert "Protein ID: 002L_FRG3G" in doc.text
    assert "Accession numbers: Q6GZX3" in doc.text
    assert "Description: RecName: Full=Uncharacterized protein 002L" in doc.text
    assert doc.metadata["id"] == "002L_FRG3G"
Test lazy loading of UniProt records.
llama-index-integrations/readers/llama-index-readers-uniprot/tests/test_uniprot_reader.py