def test_delete(session, incident_type): from dispatch.incident_type.service import delete, get delete(db_session=session, incident_type_id=incident_type.id) assert not get(db_session=session, incident_type_id=incident_type.id)
def test_get(session, incident_type): from dispatch.incident_type.service import get t_incident_type = get(db_session=session, incident_type_id=incident_type.id) assert t_incident_type.id == incident_type.id