File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -649,7 +649,7 @@ def clear_tmp_directory(self):
649
649
pipeline Run.
650
650
"""
651
651
shutil .rmtree (self .tmp_path , ignore_errors = True )
652
- self .tmp_path .mkdir (exist_ok = True )
652
+ self .tmp_path .mkdir (parents = True , exist_ok = True )
653
653
654
654
@property
655
655
def input_sources_list (self ):
Original file line number Diff line number Diff line change @@ -113,6 +113,12 @@ def test_scanpipe_project_model_clear_tmp_directory(self):
113
113
self .assertTrue (self .project1 .tmp_path .exists ())
114
114
self .assertEqual ([], list (self .project1 .tmp_path .glob ("*" )))
115
115
116
+ self .assertTrue (self .project1 .tmp_path .exists ())
117
+ shutil .rmtree (self .project1 .work_path , ignore_errors = True )
118
+ self .assertFalse (self .project1 .tmp_path .exists ())
119
+ self .project1 .clear_tmp_directory ()
120
+ self .assertTrue (self .project1 .tmp_path .exists ())
121
+
116
122
def test_scanpipe_project_model_archive (self ):
117
123
(self .project1 .input_path / "input_file" ).touch ()
118
124
(self .project1 .codebase_path / "codebase_file" ).touch ()
You can’t perform that action at this time.
0 commit comments