|
11 | 11 | from superblockify.config import Config |
12 | 12 | from superblockify.population import ghsl |
13 | 13 |
|
| 14 | +from tests.conftest import mark_xfail_flaky_download |
14 | 15 |
|
| 16 | + |
| 17 | +@mark_xfail_flaky_download |
15 | 18 | @pytest.mark.parametrize( |
16 | 19 | "resample_factor, no_window", |
17 | 20 | [ |
@@ -40,6 +43,7 @@ def test_resample_load_window_gdf(resample_factor, no_window, test_one_city_copy |
40 | 43 | assert isinstance(res_affine, Affine) |
41 | 44 |
|
42 | 45 |
|
| 46 | +@mark_xfail_flaky_download |
43 | 47 | @pytest.mark.parametrize("window", [True, False, 1, 1.0, "test"]) |
44 | 48 | def test_resample_load_window_gdf_wrong_type(window, test_one_city_copy): |
45 | 49 | """Test loading and resampling a gdf window with wrong type.""" |
@@ -179,6 +183,7 @@ def test_get_ghsl_urls_invalid_bbox(bbox_moll): |
179 | 183 | ) |
180 | 184 |
|
181 | 185 |
|
| 186 | +@mark_xfail_flaky_download |
182 | 187 | @pytest.mark.parametrize( |
183 | 188 | "urls", |
184 | 189 | [ |
@@ -226,6 +231,7 @@ def test_download_ghsl_invalid_urls(url, save_dir): |
226 | 231 | ghsl.download_ghsl(base_path + url, save_dir=save_dir) |
227 | 232 |
|
228 | 233 |
|
| 234 | +@mark_xfail_flaky_download |
229 | 235 | def test_download_ghsl_create_save_dir(_delete_ghsl_tifs): |
230 | 236 | """Test the download_ghsl function with non-existent save_dir.""" |
231 | 237 | url = base_path + ( |
|
0 commit comments