Skip to content

Commit f1d7dcb

Browse files
committed
Fix tests
1 parent 3850b7d commit f1d7dcb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/test_row_checks_geo.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def test_has_area_not_equal_to(skip_if_runtime_not_geo_compatible, spark):
460460
SELECT geom, geog FROM VALUES
461461
('POINT(0 0)', 'POINT(0 0)'),
462462
('POLYGON((0 0, 0.001 0, 0.001 0.001, 0 0.001, 0 0))', 'POLYGON((0 0, 0.001 0, 0.001 0.001, 0 0.001, 0 0))'),
463-
('POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))', 'POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))'),
463+
('POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))', 'POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))'),
464464
('invalid-geometry', 'invalid-geography'),
465465
(null, null)
466466
AS data(geom, geog)
@@ -469,7 +469,7 @@ def test_has_area_not_equal_to(skip_if_runtime_not_geo_compatible, spark):
469469

470470
actual = test_df.select(
471471
has_area_not_equal_to("geom", 0.0).alias("basic_geometry"),
472-
has_area_not_equal_to("geom", 0.0001, srid=4326).alias("geometry_srid"),
472+
has_area_not_equal_to("geom", 1.0, srid=4326).alias("geometry_srid"),
473473
has_area_not_equal_to("geog", 0.0, geodesic=True).alias("geography_geodesic"),
474474
)
475475

@@ -488,7 +488,7 @@ def test_has_area_not_equal_to(skip_if_runtime_not_geo_compatible, spark):
488488
],
489489
[
490490
None,
491-
"value `POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))` in column `geom` has area equal to value: 0.0001",
491+
"value `POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))` in column `geom` has area equal to value: 1.0",
492492
None,
493493
],
494494
[

0 commit comments

Comments
 (0)