27
27
)
28
28
from hoss .projection_utilities import (
29
29
get_bbox_polygon ,
30
+ get_densified_perimeter ,
30
31
get_filtered_points ,
31
32
get_geographic_resolution ,
32
33
get_grid_lat_lons ,
36
37
get_projected_x_y_variables ,
37
38
get_resolved_feature ,
38
39
get_resolved_features ,
39
- get_resolved_geojson ,
40
40
get_resolved_geometry ,
41
41
get_resolved_line ,
42
42
get_variable_crs ,
@@ -718,7 +718,7 @@ def test_get_geographic_resolution(self):
718
718
@patch ('hoss.projection_utilities.get_bbox_polygon' )
719
719
@patch ('hoss.projection_utilities.get_resolved_feature' )
720
720
@patch ('hoss.projection_utilities.get_resolved_features' )
721
- def test_get_resolved_geojson (
721
+ def test_get_densified_perimeter (
722
722
self ,
723
723
mock_get_resolved_features ,
724
724
mock_get_resolved_feature ,
@@ -747,7 +747,7 @@ def test_get_resolved_geojson(
747
747
748
748
with self .subTest ('Shape file is specified and used' ):
749
749
self .assertListEqual (
750
- get_resolved_geojson (resolution , shape_file = shape_file ),
750
+ get_densified_perimeter (resolution , shape_file = shape_file ),
751
751
resolved_features ,
752
752
)
753
753
mock_get_resolved_features .assert_called_once_with (
@@ -760,7 +760,7 @@ def test_get_resolved_geojson(
760
760
761
761
with self .subTest ('Bounding box is specified and used' ):
762
762
self .assertListEqual (
763
- get_resolved_geojson (resolution , bounding_box = bounding_box ),
763
+ get_densified_perimeter (resolution , bounding_box = bounding_box ),
764
764
resolved_feature ,
765
765
)
766
766
mock_get_resolved_features .assert_not_called ()
@@ -774,7 +774,7 @@ def test_get_resolved_geojson(
774
774
775
775
with self .subTest ('Bounding box is used when both are specified' ):
776
776
self .assertListEqual (
777
- get_resolved_geojson (
777
+ get_densified_perimeter (
778
778
resolution , shape_file = shape_file , bounding_box = bounding_box
779
779
),
780
780
resolved_feature ,
@@ -789,7 +789,7 @@ def test_get_resolved_geojson(
789
789
790
790
with self .subTest ('Neither shape file nor bbox, raises exception' ):
791
791
with self .assertRaises (MissingSpatialSubsetInformation ):
792
- get_resolved_geojson (resolution , None , None )
792
+ get_densified_perimeter (resolution , None , None )
793
793
mock_get_resolved_features .assert_not_called ()
794
794
mock_get_bbox_polygon .assert_not_called ()
795
795
mock_get_resolved_feature .assert_not_called ()
0 commit comments