mirror of
https://github.com/Hopiu/django.git
synced 2026-03-22 17:00:27 +00:00
Fixed RasterFieldTest.test_all_gis_lookups_with_rasters.
It was inadvertently made a no-op in 378cf689d8772d917f642a80967ab8a2332eb41c.
This commit is contained in:
parent
259875535b
commit
12812f6b2d
1 changed files with 7 additions and 3 deletions
|
|
@ -125,10 +125,14 @@ class RasterFieldTest(TransactionTestCase):
|
|||
stx_pnt = GEOSGeometry('POINT (-95.370401017314293 29.704867409475465)', 4326)
|
||||
stx_pnt.transform(3086)
|
||||
|
||||
lookups = list(
|
||||
(name, lookup)
|
||||
for name, lookup in BaseSpatialField.get_lookups().items()
|
||||
if issubclass(lookup, GISLookup)
|
||||
)
|
||||
self.assertNotEqual(lookups, [], 'No lookups found')
|
||||
# Loop through all the GIS lookups.
|
||||
for name, lookup in BaseSpatialField.get_lookups().items():
|
||||
if not isinstance(lookup, GISLookup):
|
||||
continue
|
||||
for name, lookup in lookups:
|
||||
# Construct lookup filter strings.
|
||||
combo_keys = [
|
||||
field + name for field in [
|
||||
|
|
|
|||
Loading…
Reference in a new issue