def test_delete(session, event): from dispatch.event.service import delete, get delete(db_session=session, event_id=event.id) assert not get(db_session=session, event_id=event.id)
def test_get_event(session, event): from dispatch.event.service import get t_event = get(db_session=session, event_id=event.id) assert t_event.id == event.id