Пример #1
0
def test_delete(session, conversation):
    from dispatch.conversation.service import delete, get

    delete(db_session=session, conversation_id=conversation.id)
    assert not get(db_session=session, conversation_id=conversation.id)
Пример #2
0
def test_get(session, conversation):
    from dispatch.conversation.service import get

    t_conversation = get(db_session=session, conversation_id=conversation.id)
    assert t_conversation.id == conversation.id