File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def __init__(
5050 version ,
5151 update_tasks ,
5252 download_queue_items ,
53- directory : tempfile .TemporaryDirectory ,
53+ temp_directory : tempfile .TemporaryDirectory ,
5454 mp ,
5555 project_info ,
5656 ):
@@ -60,7 +60,7 @@ def __init__(
6060 self .version = version
6161 self .update_tasks = update_tasks
6262 self .download_queue_items = download_queue_items
63- self .directory = directory # project's directory
63+ self .temp_directory = temp_directory # project's directory
6464 self .mp = mp # MerginProject instance
6565 self .is_cancelled = False
6666 self .project_info = project_info # parsed JSON with project info returned from the server
Original file line number Diff line number Diff line change @@ -2549,7 +2549,7 @@ def test_download_failure(mc):
25492549 # download project async
25502550 with pytest .raises (IsADirectoryError ):
25512551 job = download_project_async (mc , project , download_dir )
2552- os .makedirs (os .path .join (job .directory .name , "base.gpkg.0" ))
2552+ os .makedirs (os .path .join (job .temp_directory .name , "base.gpkg.0" ))
25532553 download_project_wait (job )
25542554 download_project_finalize (job )
25552555
@@ -2561,7 +2561,7 @@ def test_download_failure(mc):
25612561 # active waiting
25622562 remove_folders ([download_dir ])
25632563 job = download_project_async (mc , project , download_dir )
2564- os .makedirs (os .path .join (job .directory .name , "base.gpkg.0" ))
2564+ os .makedirs (os .path .join (job .temp_directory .name , "base.gpkg.0" ))
25652565 with pytest .raises (IsADirectoryError ):
25662566 while True :
25672567 assert download_project_is_running (job )
You can’t perform that action at this time.
0 commit comments