def setUp(self): events.unsub_all() self.workunit_provider = Mock(spec=PreFetchingWorkUnitProvider) self.image_manager = Mock(spec=ImageManager) self.synchronization_manager = Mock(spec=SynchronizationManager) self.model = ValidationModel(self.workunit_provider, self.image_manager, self.synchronization_manager)
def setUp(self): events.unsub_all() parser = AstromParser() directory_manager = LocalDirectoryWorkingContext( self._get_working_dir()) self.context = directory_manager progress_manager = LocalProgressManager(directory_manager) workunit_provider = WorkUnitProvider( tasks.get_suffix(self._get_task()), directory_manager, progress_manager, self._get_workunit_builder(parser, progress_manager)) self.workunit_provider = workunit_provider self.progress_manager = progress_manager self.singlet_download_manager = Mock(spec=AsynchronousDownloadManager) self.triplet_download_manager = Mock(spec=AsynchronousDownloadManager) self.image_manager = ImageManager(self.singlet_download_manager, self.triplet_download_manager) self.model = ValidationModel(self.workunit_provider, self.image_manager, None) self.custom_setup() self.model.start_work()
def setUp(self): events.unsub_all() self.workunit_provider = Mock(spec=PreFetchingWorkUnitProvider) self.image_manager = Mock(spec=ImageManager) self.synchronization_manager = Mock(spec=SynchronizationManager) self.model = TransAckValidationModel(self.workunit_provider, self.image_manager, self.synchronization_manager) self.data = AstromParser().parse( self.get_abs_path("data/model_testdir_1/1584431p15.measure3.reals.astrom")) self.output_context = Mock(spec=LocalDirectoryWorkingContext) self.progress_manager = MagicMock(spec=LocalProgressManager) self.sources = self.data.get_sources()
def setUp(self): events.unsub_all() parser = AstromParser() directory_manager = DirectoryContext(self._get_working_dir()) progress_manager = ProgressManager(directory_manager) workunit_provider = WorkUnitProvider(tasks.get_suffix(self._get_task()), directory_manager, progress_manager, self._get_workunit_builder(parser, progress_manager)) self.workunit_provider = workunit_provider self.progress_manager = progress_manager self.download_manager = Mock(spec=AsynchronousImageDownloadManager) self.model = self.get_model()
def setUp(self): events.unsub_all() self.workunit_provider = Mock(spec=PreFetchingWorkUnitProvider) self.image_manager = Mock(spec=ImageManager) self.synchronization_manager = Mock(spec=SynchronizationManager) self.model = TransAckValidationModel(self.workunit_provider, self.image_manager, self.synchronization_manager) self.data = AstromParser().parse( self.get_abs_path( "data/model_testdir_1/1584431p15.measure3.reals.astrom")) self.output_context = Mock(spec=LocalDirectoryWorkingContext) self.progress_manager = MagicMock(spec=LocalProgressManager) self.sources = self.data.get_sources()
def setUp(self): events.unsub_all() parser = AstromParser() directory_manager = DirectoryContext(self._get_working_dir()) progress_manager = ProgressManager(directory_manager) workunit_provider = WorkUnitProvider( tasks.get_suffix(self._get_task()), directory_manager, progress_manager, self._get_workunit_builder(parser, progress_manager)) self.workunit_provider = workunit_provider self.progress_manager = progress_manager self.download_manager = Mock(spec=AsynchronousImageDownloadManager) self.model = self.get_model()
def setUp(self): events.unsub_all() parser = AstromParser() directory_manager = LocalDirectoryWorkingContext(self._get_working_dir()) self.context = directory_manager progress_manager = LocalProgressManager(directory_manager) workunit_provider = WorkUnitProvider(tasks.get_suffix(self._get_task()), directory_manager, progress_manager, self._get_workunit_builder(parser, progress_manager)) self.workunit_provider = workunit_provider self.progress_manager = progress_manager self.singlet_download_manager = Mock(spec=AsynchronousDownloadManager) self.triplet_download_manager = Mock(spec=AsynchronousDownloadManager) self.image_manager = ImageManager(self.singlet_download_manager, self.triplet_download_manager) self.model = ValidationModel(self.workunit_provider, self.image_manager, None) self.custom_setup() self.model.start_work()
def setUp(self): events.unsub_all() self.app = wx.App(False) self.rootframe = wx.Frame(None)