File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -829,7 +829,7 @@ def delete(cls, ppd_id):
829
829
ppd = cls (ppd_id )
830
830
if ppd .status != 'sandbox' :
831
831
raise QiitaDBStatusError (
832
- "Illegal operation on non sandbox preprocessed data" )
832
+ "Illegal operation on non sandboxed preprocessed data" )
833
833
elif ppd .submitted_to_vamps_status () not in valid_submission_states :
834
834
raise QiitaDBStatusError (
835
835
"Illegal operation. This preprocessed data has or is being "
@@ -1342,7 +1342,7 @@ def delete(cls, processed_data_id):
1342
1342
"""
1343
1343
if cls (processed_data_id ).status != 'sandbox' :
1344
1344
raise QiitaDBStatusError (
1345
- "Illegal operation on non sandbox processed data" )
1345
+ "Illegal operation on non sandboxed processed data" )
1346
1346
1347
1347
conn_handler = SQLConnectionHandler ()
1348
1348
Original file line number Diff line number Diff line change @@ -488,15 +488,19 @@ def test_delete_basic(self):
488
488
ebi_study_accession = self .ebi_study_accession )
489
489
PreprocessedData .delete (ppd .id )
490
490
491
- # testing that it raises an error if ID doesn't exist
491
+ # testing that the deleted preprocessed data can't be instantiated
492
+ with self .assertRaises (QiitaDBUnknownIDError ):
493
+ PreprocessedData (ppd .id )
494
+ # and for completeness testing that it raises an error if ID
495
+ # doesn't exist
492
496
with self .assertRaises (QiitaDBUnknownIDError ):
493
497
PreprocessedData .delete (ppd .id )
494
498
495
499
# testing that we can not remove cause the preprocessed data != sandbox
496
500
with self .assertRaises (QiitaDBStatusError ):
497
501
PreprocessedData .delete (1 )
498
502
499
- def test_delete_advance (self ):
503
+ def test_delete_advanced (self ):
500
504
# testing that we can not remove cause preprocessed data has been
501
505
# submitted to EBI or VAMPS
502
506
ppd = PreprocessedData .create (
You can’t perform that action at this time.
0 commit comments