Ejemplo n.º 1
0
def start_ingest(job_id, filepath):
    """Start the celery injest task."""
    tasks.ingest(job_id, filepath)
Ejemplo n.º 2
0
    def test_tasks(self):
        """Test the ingest task."""
        job_id = get_unique_id(1, 'upload_job')

        ingest(job_id, 'test_data/good.tar')
        self.assertTrue(job_id)
Ejemplo n.º 3
0
    def test_tasks(self):
        job_id = get_unique_id(1, 'upload_job')

        ingest(job_id, 'test_data/baby.tar')