Replaced DatabaseFeatures.supports_left_right_lookups with skipUnlessGISLookup.
This commit is contained in:
parent
656b331b13
commit
060e6bdd1f
|
@ -35,9 +35,6 @@ class BaseSpatialFeatures:
|
|||
# Is the database able to count vertices on polygons (with `num_points`)?
|
||||
supports_num_points_poly = True
|
||||
|
||||
# The following properties indicate if the database backend support
|
||||
# certain lookups (dwithin, left and right, relate, ...)
|
||||
supports_left_right_lookups = False
|
||||
# Does the backend support expressions for specifying distance in the
|
||||
# dwithin lookup?
|
||||
supports_dwithin_distance_expr = True
|
||||
|
|
|
@ -8,6 +8,5 @@ class DatabaseFeatures(BaseSpatialFeatures, Psycopg2DatabaseFeatures):
|
|||
supports_geography = True
|
||||
supports_3d_storage = True
|
||||
supports_3d_functions = True
|
||||
supports_left_right_lookups = True
|
||||
supports_raster = True
|
||||
supports_empty_geometries = True
|
||||
|
|
|
@ -308,7 +308,7 @@ class GeoLookupTest(TestCase):
|
|||
self.assertEqual(qs.filter(poly__isvalid=False).count(), 1)
|
||||
self.assertEqual(qs.filter(poly__isvalid=True).count(), qs.count() - 1)
|
||||
|
||||
@skipUnlessDBFeature("supports_left_right_lookups")
|
||||
@skipUnlessGISLookup('left', 'right')
|
||||
def test_left_right_lookups(self):
|
||||
"Testing the 'left' and 'right' lookup types."
|
||||
# Left: A << B => true if xmax(A) < xmin(B)
|
||||
|
|
Loading…
Reference in New Issue