def setUp(self) -> None: self.assessment_types_patcher = mock.patch( "recidiviz.calculator.pipeline.program.identifier.assessment_utils." "_assessment_types_of_class_for_state") self.mock_assessment_types = self.assessment_types_patcher.start() self.mock_assessment_types.return_value = [StateAssessmentType.ORAS] self.identifier = identifier.ProgramIdentifier()
def __init__(self) -> None: self.pipeline_config = PipelineConfig( pipeline_type=PipelineType.PROGRAM, identifier=identifier.ProgramIdentifier(), metric_producer=metric_producer.ProgramMetricProducer(), ) self.include_calculation_limit_args = True
def setUp(self) -> None: self.assessment_types_patcher = mock.patch( "recidiviz.calculator.pipeline.program.identifier.assessment_utils." "_assessment_types_of_class_for_state") self.mock_assessment_types = self.assessment_types_patcher.start() self.mock_assessment_types.return_value = [StateAssessmentType.ORAS] self.pre_processing_delegate_patcher = mock.patch( "recidiviz.calculator.pipeline.utils.entity_pre_processing_utils.get_state_specific_incarceration_period_pre_processing_delegate" ) self.mock_pre_processing_delegate = self.pre_processing_delegate_patcher.start( ) self.mock_pre_processing_delegate.return_value = ( UsXxIncarcerationPreProcessingDelegate()) self.identifier = identifier.ProgramIdentifier()
def setUp(self) -> None: self.identifier = identifier.ProgramIdentifier()