Esempio n. 1
0
 def test_success_limit(self):
     setup_tables(os.path.join(test_path, "dblp_test1.csv"), DBLP_ARTICLE, ADD_DBLP_ARTICLE)
     ingester = DblpIngester("dblp.ingester", harvesterdb="test_storage")
     ingester.set_limit(1)
     result = ingest_data(ingester)
     self.assertEqual(result, 1)
     # check open references
     self.assertEqual(OpenReferences.objects.count(), 0)
Esempio n. 2
0
def full_execution():
    ingester = DblpIngester("dblp.ingester")
    ingester.set_limit(1000)
    result = ingest_data(ingester)