def test_no_overwrite(self): from invenio.legacy.refextract.api import RecordHasReferences, \ update_references try: update_references(92, overwrite=False) self.fail() except RecordHasReferences: # As expected pass
def test_no_fulltext(self): from invenio.legacy.refextract.api import FullTextNotAvailable, \ update_references try: update_references(1000000000000) self.fail() except FullTextNotAvailable: # As expected pass