def test_active_committees(self): committees = Committee.get_all_active_committees() first_committee = committees.next() committee = Committee.get(first_committee.id) self.assertEqual(committee.name, first_committee.name) self.assertTrue(committee.portal_link != None and committee.portal_link != '' and committee.end_date == None)
def _get_objects_by_active(self, void, proxies=None, **kwargs): self.logger.info('fetching active committees') self.descriptor["description"] = "active committees" return Committee.get_all_active_committees(has_portal_link=False, proxies=proxies)
def _update_active_committees(self): for ds_committee in DataserviceCommittee.get_all_active_committees(): committee = dict(self._translate_ds_to_model(ds_committee)) self._update_or_create(committee)
def test_active_committees(self): committees = Committee.get_all_active_committees() committee = Committee.get(committees[0].id) self.assertEqual(committee.name, committees[0].name) self.assertTrue(committee.portal_link!=None and committee.portal_link != '' and committee.end_date==None)
def _update_active_committees(self): for ds_committee in DataserviceCommittee.get_all_active_committees( has_portal_link=False): committee = dict(self._translate_ds_to_model(ds_committee)) self._update_or_create(committee)