Skip to content

Commit c5a0d69

Browse files
committed
Fix tests
1 parent 17fa79b commit c5a0d69

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

tests/integration/test_row_checks_geo.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ def test_has_area_equal_to(skip_if_runtime_not_geo_compatible, spark):
437437
"value `POLYGON((0 0, 0.001 0, 0.001 0.001, 0 0.001, 0 0))` in column `geog` has area not equal to value: 0.0",
438438
],
439439
[
440-
"value `POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))` in column `geom` has area not equal to value: 0.0",
440+
"value `POLYGON((0 0, 1 0, 1 1, 0 1, 0 0))` in column `geom` has area not equal to value: 0.0",
441441
None, # area should = 1
442442
"value `POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))` in column `geog` has area not equal to value: 0.0",
443443
],
@@ -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.000001, srid=4326).alias("geometry_srid"),
472+
has_area_not_equal_to("geom", 0.0001, srid=4326).alias("geometry_srid"),
473473
has_area_not_equal_to("geog", 0.0, geodesic=True).alias("geography_geodesic"),
474474
)
475475

@@ -483,12 +483,12 @@ def test_has_area_not_equal_to(skip_if_runtime_not_geo_compatible, spark):
483483
],
484484
[
485485
None,
486-
"value `POLYGON((0 0, 0.001 0, 0.001 0.001, 0 0.001, 0 0))` in column `geom` has area equal to value: 0.000001",
486+
None,
487487
None,
488488
],
489489
[
490490
None,
491-
None,
491+
"value `POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))` has area equal to value: 0.001",
492492
None,
493493
],
494494
[
@@ -579,12 +579,12 @@ def test_has_area_greater_than(skip_if_runtime_not_geo_compatible, spark):
579579
],
580580
[
581581
"value `POLYGON((0 0, 0.0001 0, 0.0001 0.0001, 0 0.0001, 0 0))` in column `geom` has area less than value: 20000.0",
582-
"value `POLYGON((0 0, 0.001 0, 0.001 0.001, 0 0.001, 0 0))` in column `geom` has area less than value: 1.0",
582+
"value `POLYGON((0 0, 0.0001 0, 0.0001 0.0001, 0 0.0001, 0 0))` in column `geom` has area less than value: 1.0",
583583
"value `POLYGON((0 0, 0.0001 0, 0.0001 0.0001, 0 0.0001, 0 0))` in column `geog` has area less than value: 20000.0",
584584
],
585585
[
586586
None,
587-
"value `POLYGON((0 0, 0.001 0, 0.001 0.001, 0 0.001, 0 0))` in column `geom` has area less than value: 1.0",
587+
"value `POLYGON((0 0, 0.01 0, 0.01 0.01, 0 0.01, 0 0))` in column `geom` has area less than value: 1.0",
588588
None,
589589
],
590590
[

0 commit comments

Comments
 (0)