2121
2222import pytest
2323
24- from ghga_connector .cli import CLIMessageDisplay
2524from ghga_connector .core import (
2625 PartRange ,
2726 WorkPackageAccessor ,
@@ -67,7 +66,6 @@ async def test_download_content_range(
6766 object_id = big_object .object_id , bucket_id = big_object .bucket_id
6867 )
6968
70- message_display = CLIMessageDisplay ()
7169 # download content range with dedicated function:
7270 async with async_client () as client :
7371 # no work package accessor calls in download_content_range, just mock for correct type
@@ -78,7 +76,6 @@ async def test_download_content_range(
7876 max_concurrent_downloads = 5 ,
7977 max_wait_time = 10 ,
8078 work_package_accessor = dummy_accessor ,
81- message_display = message_display ,
8279 )
8380 await downloader .download_content_range (url = download_url , start = start , end = end )
8481
@@ -116,14 +113,12 @@ async def test_download_file_parts(
116113 async with async_client () as client :
117114 # no work package accessor calls in download_file_parts, just mock for correct type
118115 dummy_accessor = Mock (spec = WorkPackageAccessor )
119- message_display = CLIMessageDisplay ()
120116 downloader = Downloader (
121117 client = client ,
122118 file_id = big_object .object_id ,
123119 max_concurrent_downloads = 5 ,
124120 max_wait_time = 10 ,
125121 work_package_accessor = dummy_accessor ,
126- message_display = message_display ,
127122 )
128123 downloader .fetch_download_url = mock_fetch # type: ignore
129124 task_handler = TaskHandler ()
@@ -159,7 +154,6 @@ async def test_download_file_parts(
159154 max_concurrent_downloads = 5 ,
160155 max_wait_time = 10 ,
161156 work_package_accessor = dummy_accessor ,
162- message_display = message_display ,
163157 )
164158 downloader .fetch_download_url = mock_fetch # type: ignore
165159 task_handler = TaskHandler ()
@@ -205,7 +199,6 @@ async def test_download_file_parts(
205199 max_concurrent_downloads = 5 ,
206200 max_wait_time = 10 ,
207201 work_package_accessor = dummy_accessor ,
208- message_display = message_display ,
209202 )
210203 downloader .fetch_download_url = mock_fetch # type: ignore
211204 task_handler = TaskHandler ()
0 commit comments