3232import bigframes .bigquery as bbq
3333import bigframes .geopandas
3434import bigframes .session
35+ import bigframes .testing
3536
3637
3738def test_geo_st_area (session : bigframes .session .Session ):
@@ -56,7 +57,7 @@ def test_geo_st_area(session: bigframes.session.Session):
5657 geobf_s_result = bbq .st_area (geobf_s ).to_pandas ().round (- 3 )
5758 assert geobf_s_result .iloc [0 ] >= 1000
5859
59- pd .testing .assert_series_equal (
60+ bigframes .testing .assert_series_equal (
6061 geobf_s_result ,
6162 geopd_s_result ,
6263 check_dtype = False ,
@@ -109,7 +110,7 @@ def test_st_length_various_geometries(session):
109110
110111 # Test default use_spheroid
111112 result_default = st_length (geoseries ).to_pandas ()
112- pd .testing .assert_series_equal (
113+ bigframes .testing .assert_series_equal (
113114 result_default ,
114115 expected_lengths ,
115116 rtol = 1e-3 ,
@@ -118,7 +119,7 @@ def test_st_length_various_geometries(session):
118119
119120 # Test explicit use_spheroid=False
120121 result_explicit_false = st_length (geoseries , use_spheroid = False ).to_pandas ()
121- pd .testing .assert_series_equal (
122+ bigframes .testing .assert_series_equal (
122123 result_explicit_false ,
123124 expected_lengths ,
124125 rtol = 1e-3 ,
@@ -152,7 +153,7 @@ def test_geo_st_difference_with_geometry_objects(session: bigframes.session.Sess
152153 index = [0 , 1 , 2 ],
153154 dtype = geopandas .array .GeometryDtype (),
154155 )
155- pandas .testing .assert_series_equal (
156+ bigframes .testing .assert_series_equal (
156157 geobf_s_result ,
157158 expected ,
158159 check_index_type = False ,
@@ -191,7 +192,7 @@ def test_geo_st_difference_with_single_geometry_object(
191192 index = [0 , 1 , 2 ],
192193 dtype = geopandas .array .GeometryDtype (),
193194 )
194- pandas .testing .assert_series_equal (
195+ bigframes .testing .assert_series_equal (
195196 geobf_s_result ,
196197 expected ,
197198 check_index_type = False ,
@@ -217,7 +218,7 @@ def test_geo_st_difference_with_similar_geometry_objects(
217218 index = [0 , 1 , 2 ],
218219 dtype = geopandas .array .GeometryDtype (),
219220 )
220- pandas .testing .assert_series_equal (
221+ bigframes .testing .assert_series_equal (
221222 geobf_s_result ,
222223 expected ,
223224 check_index_type = False ,
@@ -273,7 +274,7 @@ def test_geo_st_distance_with_geometry_objects(session: bigframes.session.Sessio
273274 index = [0 , 1 , 2 , 3 ],
274275 dtype = "Float64" ,
275276 )
276- pandas .testing .assert_series_equal (
277+ bigframes .testing .assert_series_equal (
277278 geobf_s_result ,
278279 expected ,
279280 check_index_type = False ,
@@ -320,7 +321,7 @@ def test_geo_st_distance_with_single_geometry_object(
320321 ],
321322 dtype = "Float64" ,
322323 )
323- pandas .testing .assert_series_equal (
324+ bigframes .testing .assert_series_equal (
324325 geobf_s_result ,
325326 expected ,
326327 check_index_type = False ,
@@ -355,7 +356,7 @@ def test_geo_st_intersection_with_geometry_objects(session: bigframes.session.Se
355356 index = [0 , 1 , 2 ],
356357 dtype = geopandas .array .GeometryDtype (),
357358 )
358- pandas .testing .assert_series_equal (
359+ bigframes .testing .assert_series_equal (
359360 geobf_s_result ,
360361 expected ,
361362 check_index_type = False ,
@@ -394,7 +395,7 @@ def test_geo_st_intersection_with_single_geometry_object(
394395 index = [0 , 1 , 2 ],
395396 dtype = geopandas .array .GeometryDtype (),
396397 )
397- pandas .testing .assert_series_equal (
398+ bigframes .testing .assert_series_equal (
398399 geobf_s_result ,
399400 expected ,
400401 check_index_type = False ,
@@ -424,7 +425,7 @@ def test_geo_st_intersection_with_similar_geometry_objects(
424425 index = [0 , 1 , 2 ],
425426 dtype = geopandas .array .GeometryDtype (),
426427 )
427- pandas .testing .assert_series_equal (
428+ bigframes .testing .assert_series_equal (
428429 geobf_s_result ,
429430 expected ,
430431 check_index_type = False ,
@@ -465,7 +466,7 @@ def test_geo_st_isclosed(session: bigframes.session.Session):
465466 ]
466467 expected_series = pd .Series (data = expected_data , dtype = "boolean" )
467468
468- pd .testing .assert_series_equal (
469+ bigframes .testing .assert_series_equal (
469470 bf_result ,
470471 expected_series ,
471472 # We default to Int64 (nullable) dtype, but pandas defaults to int64 index.
0 commit comments