mirror of
https://github.com/django/django.git
synced 2025-10-27 15:46:10 +00:00
Unified SpatiaLite spelling
This commit is contained in:
@@ -292,7 +292,7 @@ class GISFunctionsTests(TestCase):
|
||||
qs = Track.objects.annotate(num_points=functions.NumPoints('line'))
|
||||
self.assertEqual(qs.first().num_points, 2)
|
||||
if spatialite or mysql:
|
||||
# Spatialite and MySQL can only count points on LineStrings
|
||||
# SpatiaLite and MySQL can only count points on LineStrings
|
||||
return
|
||||
|
||||
for c in Country.objects.annotate(num_points=functions.NumPoints('mpoly')):
|
||||
@@ -321,7 +321,7 @@ class GISFunctionsTests(TestCase):
|
||||
|
||||
qs = Country.objects.annotate(point_on_surface=functions.PointOnSurface('mpoly'))
|
||||
for country in qs:
|
||||
tol = 0.00001 # Spatialite might have WKT-translation-related precision issues
|
||||
tol = 0.00001 # SpatiaLite might have WKT-translation-related precision issues
|
||||
self.assertTrue(ref[country.name].equals_exact(country.point_on_surface, tol))
|
||||
|
||||
@skipUnlessDBFeature("has_Reverse_function")
|
||||
|
||||
Reference in New Issue
Block a user