@@ -159,7 +159,7 @@ def test_run_pack_download(self):
159159 self .assertEqual (result , {"test" : "Success." })
160160 self .clone_from .assert_called_once_with (
161161 PACK_INDEX ["test" ]["repo_url" ],
162- os .path .join (os .path .expanduser ("~" ), temp_dir ),
162+ os .path .join (os .path .expanduser ("~" ), ".st2packs" , temp_dir ),
163163 )
164164 self .assertTrue (os .path .isfile (os .path .join (self .repo_base , "test/pack.yaml" )))
165165
@@ -182,11 +182,11 @@ def test_run_pack_download_dependencies(self):
182182 self .assertEqual (result , {"test2" : "Success." , "test4" : "Success." })
183183 self .clone_from .assert_any_call (
184184 PACK_INDEX ["test2" ]["repo_url" ],
185- os .path .join (os .path .expanduser ("~" ), temp_dirs [0 ]),
185+ os .path .join (os .path .expanduser ("~" ), ".st2packs" , temp_dirs [0 ]),
186186 )
187187 self .clone_from .assert_any_call (
188188 PACK_INDEX ["test4" ]["repo_url" ],
189- os .path .join (os .path .expanduser ("~" ), temp_dirs [1 ]),
189+ os .path .join (os .path .expanduser ("~" ), ".st2packs" , temp_dirs [1 ]),
190190 )
191191 self .assertEqual (self .clone_from .call_count , 2 )
192192 self .assertTrue (os .path .isfile (os .path .join (self .repo_base , "test2/pack.yaml" )))
@@ -212,11 +212,11 @@ def test_run_pack_download_multiple_packs(self):
212212 self .assertEqual (result , {"test" : "Success." , "test2" : "Success." })
213213 self .clone_from .assert_any_call (
214214 PACK_INDEX ["test" ]["repo_url" ],
215- os .path .join (os .path .expanduser ("~" ), temp_dirs [0 ]),
215+ os .path .join (os .path .expanduser ("~" ), ".st2packs" , temp_dirs [0 ]),
216216 )
217217 self .clone_from .assert_any_call (
218218 PACK_INDEX ["test2" ]["repo_url" ],
219- os .path .join (os .path .expanduser ("~" ), temp_dirs [1 ]),
219+ os .path .join (os .path .expanduser ("~" ), ".st2packs" , temp_dirs [1 ]),
220220 )
221221 self .assertEqual (self .clone_from .call_count , 2 )
222222 self .assertTrue (os .path .isfile (os .path .join (self .repo_base , "test/pack.yaml" )))
@@ -687,7 +687,7 @@ def test_run_pack_download_with_tag(self):
687687 self .assertEqual (result , {"test" : "Success." })
688688 self .clone_from .assert_called_once_with (
689689 PACK_INDEX ["test" ]["repo_url" ],
690- os .path .join (os .path .expanduser ("~" ), temp_dir ),
690+ os .path .join (os .path .expanduser ("~" ), ".st2packs" , temp_dir ),
691691 )
692692 self .assertTrue (os .path .isfile (os .path .join (self .repo_base , "test/pack.yaml" )))
693693
0 commit comments