Пример #1
0
def reset_records(message):
    dbquery.run_sql("UPDATE bibrec SET modification_date=NOW(), creation_date=NOW()")
    
    recs = dbquery.run_sql("SELECT id FROM bibrec WHERE id>104")
    for x in recs:
        rid = x[0]
        bibupload_regression_tests.wipe_out_record_from_all_tables(rid)
Пример #2
0
    def tearDownClass(cls):

        # All records are wiped out for consistency.
        for key in cls.authors:
            clean_up_the_database(cls.authors[key]['inspireID'])

        for key in cls.pids:
            if cls.pids[key]:
                _delete_from_aidpersonidpapers_where(cls.pids[key])

        for bibrec in cls.bibrecs_to_clean:
            wipe_out_record_from_all_tables(bibrec)
            clean_authors_tables(bibrec)
Пример #3
0
def wipeout_record(message):
    recid = int(Integer.cast_(message.getParam('recid')).intValue())
    bibupload_regression_tests.wipe_out_record_from_all_tables(recid)  
 def tearDown(self):
     # All records are wiped out for consistency.
     for bibrec in self.bibrecs_to_clean:
         wipe_out_record_from_all_tables(bibrec)
         clean_authors_tables(bibrec)
 def tearDown(self):
     remove_author_data('extid:ORCID', self._pid)
     wipe_out_record_from_all_tables(self._rec)
     clean_authors_tables(self._rec)