def test_ingest_defaults(self):
     x = AnalyticsIngester()
     x(self.get_fixture(), 'SELECT * FROM Metadata.`Dataverse`')
     result = self.get_fixture().get("DataverseResult_1")
     self.assertIsNotNone(result)
 def test_ingest_ignore_errors(self):
     x = AnalyticsIngester(TestIdGenerator(), lambda json: 1 / 0,
                           BucketOperators.UPSERT)
     x(self.get_fixture(),
       'SELECT * FROM Metadata.`Dataverse`',
       ignore_ingest_error=True)
 def test_ingest_basic(self):
     x = AnalyticsIngester(TestIdGenerator(), data_converter,
                           BucketOperators.UPSERT)
     x(self.get_fixture(), 'SELECT * FROM Metadata.`Dataverse`')
     result = self.get_fixture().get("DataverseResult_1")
     self.assertIsNotNone(result)