@@ -28,18 +28,13 @@ def test_download_failure(client, uuid):
2828 (
2929 "raster-results" ,
3030 "vector-results" ,
31- "centroid-results" ,
3231 ),
3332)
3433def test_group_download_success (client , uuid , type_ , monkeypatch ):
3534 monkeypatch .setattr (
3635 "sketch_map_tool.routes.merge" ,
3736 lambda * _ : {"type" : "FeatureCollection" , "features" : []},
3837 )
39- monkeypatch .setattr (
40- "sketch_map_tool.routes.extract_centroids" ,
41- lambda * _ : {"type" : "FeatureCollection" , "features" : []},
42- )
4338 monkeypatch .setattr (
4439 "sketch_map_tool.routes.zip_" ,
4540 lambda * _ : BytesIO (),
@@ -55,7 +50,6 @@ def test_group_download_success(client, uuid, type_, monkeypatch):
5550 (
5651 "raster-results" ,
5752 "vector-results" ,
58- "centroid-results" ,
5953 ),
6054)
6155def test_group_started (client , uuid , type_ ):
@@ -69,7 +63,6 @@ def test_group_started(client, uuid, type_):
6963 (
7064 "raster-results" ,
7165 "vector-results" ,
72- "centroid-results" ,
7366 ),
7467)
7568def test_group_failure (client , uuid , type_ ):
@@ -83,14 +76,9 @@ def test_group_failure(client, uuid, type_):
8376 (
8477 "raster-results" ,
8578 "vector-results" ,
86- "centroid-results" ,
8779 ),
8880)
8981def test_group_started_success_failure (client , uuid , type_ , monkeypatch ):
90- monkeypatch .setattr (
91- "sketch_map_tool.routes.extract_centroids" ,
92- lambda * _ : {"type" : "FeatureCollection" , "features" : []},
93- )
9482 resp = client .get ("/api/download/{0}/{1}" .format (uuid , type_ ))
9583 assert resp .status_code == 500
9684
@@ -100,7 +88,6 @@ def test_group_started_success_failure(client, uuid, type_, monkeypatch):
10088 (
10189 "raster-results" ,
10290 "vector-results" ,
103- "centroid-results" ,
10491 ),
10592)
10693def test_group_success_failure (
@@ -114,10 +101,6 @@ def test_group_success_failure(
114101 "sketch_map_tool.routes.merge" ,
115102 lambda * _ : {"type" : "FeatureCollection" , "features" : []},
116103 )
117- monkeypatch .setattr (
118- "sketch_map_tool.routes.extract_centroids" ,
119- lambda * _ : {"type" : "FeatureCollection" , "features" : []},
120- )
121104 monkeypatch .setattr (
122105 "sketch_map_tool.routes.zip_" ,
123106 lambda * _ : BytesIO (),
0 commit comments