async def test_message_without_text(vector_memory_block):
    """Test with a message that has no text blocks."""
    # Create a message with no text blocks
    message = ChatMessage(role="user", content=None, blocks=[])

    # Put the message in memory
    await vector_memory_block.aput(messages=[message])

    # Check that nothing was added
    assert len(vector_memory_block.vector_store.nodes) == 0
Test with a message that has no text blocks.
llama-index-core/tests/memory/blocks/test_vector.py