Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions tests/gis_tests/relatedapp/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,15 @@ def test_related_union_aggregate(self):
self.assertEqual(type(u3), MultiPoint)

# Ordering of points in the result of the union is not defined and
# implementation-dependent (DB backend, GEOS version)
self.assertEqual({p.ewkt for p in ref_u1}, {p.ewkt for p in u1})
self.assertEqual({p.ewkt for p in ref_u2}, {p.ewkt for p in u2})
self.assertEqual({p.ewkt for p in ref_u1}, {p.ewkt for p in u3})
# implementation-dependent (DB backend, GEOS version).
tests = [
(u1, ref_u1),
(u2, ref_u2),
(u3, ref_u1),
]
for union, ref in tests:
for point, ref_point in zip(sorted(union), sorted(ref), strict=True):
self.assertIs(point.equals_exact(ref_point, tolerance=6), True)

def test05_select_related_fk_to_subclass(self):
"""
Expand Down
1 change: 0 additions & 1 deletion tests/gis_tests/test_geoforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,6 @@ def test_subwidgets(self):
"map_srid": 4326,
"geom_name": "Geometry",
"geom_type": "GEOMETRY",
"display_raw": False,
},
"name": "name",
"template_name": "",
Expand Down