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

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

    t_group = get(db_session=session, group_id=group.id)
    assert t_group.id == group.id