@@ -78,27 +78,27 @@ def test_execute_raises_when_missing_collection(process_def, bytes_data):
7878 [
7979 (
8080 "http://geoconnex.us/ref/states/08" ,
81- ( - 109.060253 , 36.992426 , - 102.041524 , 41.003443999999995 ) ,
81+ [ - 109.060253 , 36.992426 , - 102.041524 , 41.003443999999995 ] ,
8282 contextlib .nullcontext (),
8383 ),
8484 (
8585 "https://reference.geoconnex.us/collections/states/items" ,
86- ( - 179.148909 , - 14.548699 , 179.77847011250077 , 71.365162 ) ,
86+ [ - 179.148909 , - 14.548699 , 179.77847011250077 , 71.365162 ] ,
8787 contextlib .nullcontext (),
8888 ),
8989 (
9090 "https://www.hydroshare.org/resource/3295a17b4cc24d34bd6a5c5aaf753c50/data/contents/hu02.gpkg" ,
91- ( - 179.2294679909685 , - 14.42442 , 179.85648417282215 , 71.439451 ) ,
91+ [ - 179.2294676 , - 14.42442 , 179.8564841 , 71.439451 ] ,
9292 contextlib .nullcontext (),
9393 ),
9494 (
9595 "https://github.com/geopython/pygeoapi/raw/refs/heads/master/tests/data/dutch_addresses_shape_28992.zip" ,
96- (
96+ [
97+ 52.04308374228452 ,
9798 5.670269218772358 ,
98- 52.04259660083967 ,
99+ 52.12327124702764 ,
99100 5.829358202203319 ,
100- 52.12375952869009 ,
101- ),
101+ ],
102102 contextlib .nullcontext (),
103103 ),
104104 (
@@ -109,16 +109,16 @@ def test_execute_raises_when_missing_collection(process_def, bytes_data):
109109 ("https://example.com" , None , pytest .raises (Exception )), # Error case - bad URL
110110 ],
111111)
112- def test_get_bbox_partial (process_def , url , bounds , ctx ):
112+ def test_get_bbox (process_def , url , bounds , ctx ):
113113 proc = intersect .IntersectionProcessor (process_def )
114114 with ctx :
115115 _ , bbox = proc .get_layer (url = url , as_bbox = True )
116- assert bbox == bounds
116+ assert pytest . approx ( bbox ) == bounds
117117
118118 with ctx :
119119 content = requests .get (url ).content
120- _ , bbox , _ = proc .get_layer (file = content , as_bbox = True )
121- assert bbox == bounds
120+ _ , bbox = proc .get_layer (file = content , as_bbox = True )
121+ assert pytest . approx ( bbox ) == bounds
122122
123123
124124@pytest .mark .parametrize (
0 commit comments