from beaver.engine.session.models import MessageRecord


def test_conversation_message_preserves_timestamp() -> None:
    record = MessageRecord(
        role="user",
        content="hello",
        timestamp=1_779_329_600.0,
        message_id=42,
    )

    assert record.to_conversation_message()["timestamp"] == 1_779_329_600.0
