Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Properly used test skipping in OGRInspectTest TestCase

  • Loading branch information...
commit 1628dfd0b9200f709e4f174cb39b8fd398ad5d7d 1 parent bfb2504
Claude Paroz authored April 15, 2013
6  django/contrib/gis/tests/inspectapp/tests.py
@@ -56,15 +56,15 @@ def test_time_field(self):
56 56
         # complains about permissions, and SpatiaLite/Oracle are
57 57
         # insanely difficult to get support compiled in for in GDAL.
58 58
         if not connections['default'].ops.postgis:
59  
-            return
  59
+            self.skipTest("This database does not support 'ogrinspect'ion")
60 60
 
61 61
         # Getting the database identifier used by OGR, if None returned
62 62
         # GDAL does not have the support compiled in.
63 63
         ogr_db = get_ogr_db_string()
64 64
         if not ogr_db:
65  
-            return
  65
+            self.skipTest("Your GDAL installation does not support PostGIS databases")
66 66
 
67  
-        # writing shapefules via GDAL currently does not support writing OGRTime
  67
+        # Writing shapefiles via GDAL currently does not support writing OGRTime
68 68
         # fields, so we need to actually use a database
69 69
         model_def = ogrinspect(ogr_db, 'Measurement',
70 70
                                layer_key=AllOGRFields._meta.db_table,

0 notes on commit 1628dfd

Please sign in to comment.
Something went wrong with that request. Please try again.