@@ -1065,11 +1065,19 @@ def test_delete(self):
1065
1065
qdb .artifact .Artifact (test .id )
1066
1066
1067
1067
def test_delete_with_html (self ):
1068
+
1069
+ # creating a single file html_summary
1068
1070
fd , html_fp = mkstemp (suffix = ".html" )
1069
1071
close (fd )
1070
1072
self .filepaths_root .append ((html_fp , 'html_summary' ))
1071
1073
self ._clean_up_files .append (html_fp )
1072
1074
1075
+ # creating a folder with a file for html_summary_dir
1076
+ summary_dir = mkdtemp ()
1077
+ open (join (summary_dir , 'index.html' ), 'w' ).write ('this is a test' )
1078
+ self .filepaths_root .append ((summary_dir , 'html_summary_dir' ))
1079
+ self ._clean_up_files .append (summary_dir )
1080
+
1073
1081
test = qdb .artifact .Artifact .create (
1074
1082
self .filepaths_root , "FASTQ" , prep_template = self .prep_template )
1075
1083
@@ -1085,6 +1093,7 @@ def test_delete_with_html(self):
1085
1093
qdb .artifact .Artifact (test .id )
1086
1094
1087
1095
self .assertFalse (exists (join (uploads_fp , basename (html_fp ))))
1096
+ self .assertFalse (exists (join (uploads_fp , basename (summary_dir ))))
1088
1097
1089
1098
def test_delete_with_jobs (self ):
1090
1099
test = qdb .artifact .Artifact .create (
0 commit comments