コード例 #1
0
 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
コード例 #2
0
 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
コード例 #3
0
 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
コード例 #4
0
 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