def METHOD_NAME(self) -> None:
    self.model = DioptasModel()
    self.model.calibration_model.is_calibrated = True
    self.model.calibration_model.pattern_geometry.wavelength = 0.31E-10
    self.model.calibration_model.integrate_1d = MagicMock(return_value=(self.model.calibration_model.tth,
                                                                        self.model.calibration_model.int))
    self.widget = IntegrationWidget()
    self.controller = PhaseInPatternController(self.widget, self.model)
    self.pattern_controller = PatternController(self.widget, self.model)
    self.model.pattern_model.load_pattern(os.path.join(data_path, 'pattern_001.xy'))