@@ -443,31 +443,10 @@ def test_delete_study(self):
443443 job = self ._create_job ('delete_study' , {'study' : 1 })
444444 private_task (job .id )
445445 self .assertEqual (job .status , 'error' )
446- self .assertIn ("Cannot delete artifact 2: Artifact 2 has been "
447- "submitted to EBI" , job .log .msg )
446+ self .assertIn ("Artifact 2 has been submitted to EBI" , job .log .msg )
448447 # making sure the analysis, first thing to delete, still exists
449448 self .assertTrue (Analysis .exists (1 ))
450449
451- # delete everything from the EBI submissions and the processing job so
452- # we can try again: test success (with tags)
453- with TRN :
454- sql = """DELETE FROM qiita.ebi_run_accession"""
455- TRN .add (sql )
456- sql = """DELETE FROM qiita.artifact_processing_job"""
457- TRN .add (sql )
458- TRN .execute ()
459-
460- # adding tags
461- Study (1 ).update_tags (self .user , ['my new tag!' ])
462-
463- job = self ._create_job ('delete_study' , {'study' : 1 })
464- private_task (job .id )
465-
466- self .assertEqual (job .status , 'success' )
467- with self .assertRaises (QiitaDBUnknownIDError ):
468- Study (1 )
469-
470- def test_delete_study_empty_study (self ):
471450 info = {
472451 "timeseries_type_id" : '1' ,
473452 "metadata_complete" : 'true' ,
@@ -481,6 +460,10 @@ def test_delete_study_empty_study(self):
481460 "lab_person_id" : StudyPerson (1 )}
482461 new_study = Study .create (User ('test@foo.bar' ),
483462 "Fried Chicken Microbiome %s" % time (), info )
463+
464+ # adding tags
465+ new_study .update_tags (User ('test@foo.bar' ), ['my new tag!' ])
466+
484467 # creating a sample information file
485468 metadata = pd .DataFrame .from_dict ({
486469 'Sample1' : {'physical_specimen_location' : 'location1' ,
0 commit comments