683edd4156fa8579421f0830aaa34011f0f6dc35,workers/data_refinery_workers/downloaders/test_array_express.py,DownloadArrayExpressTestCase,test_download,#DownloadArrayExpressTestCase#Any#Any#Any#Any#,36
Before Change
survey_job.save()
download_url = "ftp://ftp.ebi.ac.uk/pub/databases/microarray/data/experiment/GEOD/E-GEOD-59071/E-GEOD-59071.raw.3.zip" // noqa
batch = Batch(
survey_job=survey_job,
source_type="ARRAY_EXPRESS",
size_in_bytes=0,
download_url=download_url,
raw_format="CEL",
processed_format="PCL",
pipeline_required="AFFY_TO_PCL",
platform_accession_code="A-AFFY-1",
experiment_accession_code="E-MTAB-3050",
experiment_title="It doesn"t really matter.",
name="CE1234.CEL",
internal_location="A-AFFY-1/AFFY_TO_PCL/",
organism_id=9606,
organism_name="HOMO SAPIENS",
release_date="2017-05-05",
last_uploaded_date="2017-05-05",
status=BatchStatuses.NEW.value
)
batch2 = copy.deepcopy(batch)
batch2.name = "CE2345.CEL"
batch.save()
batch2.save()
downloader_job = DownloaderJob.create_job_and_relationships(batches=[batch, batch2])
// Call the task we"re testing:
array_express.download_array_express.apply(args=(downloader_job.id,)).get()
After Change
app.send_task = MagicMock()
app.send_task.return_value = None
batches = self.insert_batches()
downloader_job = DownloaderJob.create_job_and_relationships(batches=batches)
// Call the task we"re testing:
array_express.download_array_express.apply(args=(downloader_job.id,)).get()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: AlexsLemonade/refinebio
Commit Name: 683edd4156fa8579421f0830aaa34011f0f6dc35
Time: 2017-08-23
Author: kurt.wheeler91@gmail.com
File Name: workers/data_refinery_workers/downloaders/test_array_express.py
Class Name: DownloadArrayExpressTestCase
Method Name: test_download
Project Name: AlexsLemonade/refinebio
Commit Name: 683edd4156fa8579421f0830aaa34011f0f6dc35
Time: 2017-08-23
Author: kurt.wheeler91@gmail.com
File Name: workers/data_refinery_workers/downloaders/test_array_express.py
Class Name: DownloadArrayExpressTestCase
Method Name: test_good_batch_grouping
Project Name: AlexsLemonade/refinebio
Commit Name: 683edd4156fa8579421f0830aaa34011f0f6dc35
Time: 2017-08-23
Author: kurt.wheeler91@gmail.com
File Name: workers/data_refinery_workers/downloaders/test_array_express.py
Class Name: DownloadArrayExpressTestCase
Method Name: test_bad_batch_grouping