@@ -173,7 +173,7 @@ def test_get_ghsl_urls_invalid_bbox(bbox_moll):
173173 ghsl .get_ghsl_urls (bbox_moll )
174174
175175
176- BASE_PATH = (
176+ base_path = (
177177 "https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/GHS_POP_GLOBE_R2023A"
178178 "/GHS_POP_E2025_GLOBE_R2023A_54009_100/V1-0/tiles/"
179179)
@@ -182,10 +182,10 @@ def test_get_ghsl_urls_invalid_bbox(bbox_moll):
182182@pytest .mark .parametrize (
183183 "urls" ,
184184 [
185- BASE_PATH + "GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R2_C30.zip" ,
185+ base_path + "GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R2_C30.zip" ,
186186 [
187- BASE_PATH + "GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R2_C30.zip" ,
188- BASE_PATH + "GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R7_C2.zip" ,
187+ base_path + "GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R2_C30.zip" ,
188+ base_path + "GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R7_C2.zip" ,
189189 ],
190190 ],
191191)
@@ -203,7 +203,7 @@ def test_download_ghsl(urls, _delete_ghsl_tifs):
203203 assert isfile (filepath )
204204
205205
206- BASE_PATH = "https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/"
206+ base_path = "https://jeodpp.jrc.ec.europa.eu/ftp/jrc-opendata/GHSL/"
207207
208208
209209@pytest .mark .parametrize (
@@ -223,12 +223,12 @@ def test_download_ghsl(urls, _delete_ghsl_tifs):
223223def test_download_ghsl_invalid_urls (url , save_dir ):
224224 """Test the download_ghsl function with invalid urls."""
225225 with pytest .raises (ValueError ):
226- ghsl .download_ghsl (BASE_PATH + url , save_dir = save_dir )
226+ ghsl .download_ghsl (base_path + url , save_dir = save_dir )
227227
228228
229229def test_download_ghsl_create_save_dir (_delete_ghsl_tifs ):
230230 """Test the download_ghsl function with non-existent save_dir."""
231- url = BASE_PATH + (
231+ url = base_path + (
232232 "GHS_POP_GLOBE_R2023A/GHS_POP_E2025_GLOBE_R2023A_54009_100/V1-0/tiles/"
233233 "GHS_POP_E2025_GLOBE_R2023A_54009_100_V1_0_R18_C26.zip"
234234 )
0 commit comments