def test_delete(session, incident_priority): from dispatch.incident_priority.service import delete, get delete(db_session=session, incident_priority_id=incident_priority.id) assert not get(db_session=session, incident_priority_id=incident_priority.id)
def test_get(session, incident_priority): from dispatch.incident_priority.service import get t_incident_priority = get(db_session=session, incident_priority_id=incident_priority.id) assert t_incident_priority.id == incident_priority.id