diff options
| author | Sergey Fedoseev <fedoseev.sergey@gmail.com> | 2017-07-18 17:47:59 +0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-07-18 08:47:59 -0400 |
| commit | 12812f6b2ddd38fba2ecb277199f4ea5aecca1ff (patch) | |
| tree | e590262fcbebd2ea1bda72733291dac7561f3124 | |
| parent | 259875535b1fb4238eefbe9d50c761d0702a1ce2 (diff) | |
Fixed RasterFieldTest.test_all_gis_lookups_with_rasters.
It was inadvertently made a no-op in
378cf689d8772d917f642a80967ab8a2332eb41c.
| -rw-r--r-- | tests/gis_tests/rasterapp/test_rasterfield.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/gis_tests/rasterapp/test_rasterfield.py b/tests/gis_tests/rasterapp/test_rasterfield.py index e8a065fa3d..a82a683558 100644 --- a/tests/gis_tests/rasterapp/test_rasterfield.py +++ b/tests/gis_tests/rasterapp/test_rasterfield.py @@ -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 [ |
