ee3ba5fb1cb0d1b66fff520194f4111c6925cd7b,workers/data_refinery_workers/processors/test_smasher.py,SmasherTestCase,test_smasher,#SmasherTestCase#,79

Before Change


        final_context = smasher.smash(job.pk)
        // Make sure the file exists and is our desired size
        self.assertNotEqual(os.path.getsize(final_context["output_file"]), 0)
        self.assertEqual(os.path.getsize(final_context["output_file"]), 2876517)
        self.assertEqual(final_context["dataset"].is_processed, True)

    @tag("smasher")
    def test_get_results(self):

After Change



        for ag_type in ["ALL", "EXPERIMENT", "SPECIES"]:
            dataset.aggregate_by = ag_type
            dataset.save()

            final_context = smasher.smash(job.pk)
            // Make sure the file exists and is a valid size
            self.assertNotEqual(os.path.getsize(final_context["output_file"]), 0)
            self.assertEqual(final_context["dataset"].is_processed, True)

            dataset.is_processed = False
            dataset.save()

            // Cleanup
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: AlexsLemonade/refinebio
Commit Name: ee3ba5fb1cb0d1b66fff520194f4111c6925cd7b
Time: 2018-05-31
Author: miserlou@gmail.com
File Name: workers/data_refinery_workers/processors/test_smasher.py
Class Name: SmasherTestCase
Method Name: test_smasher


Project Name: AlexsLemonade/refinebio
Commit Name: ee3ba5fb1cb0d1b66fff520194f4111c6925cd7b
Time: 2018-05-31
Author: miserlou@gmail.com
File Name: workers/data_refinery_workers/processors/test_smasher.py
Class Name: SmasherTestCase
Method Name: test_smasher


Project Name: comic/grand-challenge.org
Commit Name: db027a73952aee81f9ba741150de6a05f42ef01c
Time: 2018-01-12
Author: jamesmeakin@gmail.com
File Name: app/tests/evaluation_tests/test_utils.py
Class Name:
Method Name: test_calculate_ranks


Project Name: nipy/dipy
Commit Name: 2df29df88d4b603b0e89e45481a062c38d4b829d
Time: 2017-03-28
Author: marc.cote.19@gmail.com
File Name: dipy/viz/tests/test_ui.py
Class Name:
Method Name: test_ui_textbox