mirror of
https://github.com/django/django.git
synced 2025-11-03 13:23:19 +00:00
Made test for GIS Envelope function more strict.
This commit is contained in:
parent
7409d21a5e
commit
d8d21d3891
1 changed files with 1 additions and 1 deletions
|
|
@ -214,7 +214,7 @@ class GISFunctionsTests(FuncTestMixin, TestCase):
|
||||||
def test_envelope(self):
|
def test_envelope(self):
|
||||||
countries = Country.objects.annotate(envelope=functions.Envelope('mpoly'))
|
countries = Country.objects.annotate(envelope=functions.Envelope('mpoly'))
|
||||||
for country in countries:
|
for country in countries:
|
||||||
self.assertIsInstance(country.envelope, Polygon)
|
self.assertTrue(country.envelope.equals(country.mpoly.envelope))
|
||||||
|
|
||||||
@skipUnlessDBFeature("has_ForcePolygonCW_function")
|
@skipUnlessDBFeature("has_ForcePolygonCW_function")
|
||||||
def test_force_polygon_cw(self):
|
def test_force_polygon_cw(self):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue