1
0
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:
Claude Paroz
2016-08-09 18:46:14 +02:00
parent 79a9603ba8
commit ade681b9ad
13 changed files with 20 additions and 20 deletions

View File

@@ -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")