(self)
| 31 | return True |
| 32 | |
| 33 | def test_using_sql(self): |
| 34 | if not connection.ops.postgis: |
| 35 | self.skipTest("This is a PostGIS-specific test.") |
| 36 | index = Index(fields=["point"]) |
| 37 | editor = connection.schema_editor() |
| 38 | self.assertIn( |
| 39 | "%s USING " % editor.quote_name(City._meta.db_table), |
| 40 | str(index.create_sql(City, editor)), |
| 41 | ) |
| 42 | |
| 43 | @isolate_apps("gis_tests.geoapp") |
| 44 | def test_namespaced_db_table(self): |
nothing calls this directly
no test coverage detected