def monitor_flowcells(): """ Collect information from the filesystem and update the trello board""" if not CONFIG.get('trello', ''): logging.error("Config file missing required entries: 'trello'") raise RuntimeError("Config file missing required entries: 'trello'") if not CONFIG.get('data_folders', ''): logging.error("Config file missing required entries: 'data_folders'") raise RuntimeError( "Config file missing required entries: 'data_folders'") flowcell_monitor = FlowcellMonitor(CONFIG) flowcell_monitor.update_trello_board()
def test_nosync(self): monitor = FlowcellMonitor(self.config) nosync_flowcells = monitor.get_nosync_flowcells() nosync_flowcell = HiseqFlowcell(self.nosync_flowcell) self.assertEqual(nosync_flowcells, [nosync_flowcell])
def test_flowcell_monitor(self): monitor = FlowcellMonitor(self.config) data_folders = monitor.data_folders self.assertEqual(data_folders, config.get('data_folders'))