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