MCPcopy
hub / github.com/django/django / test_using_sql

Method test_using_sql

tests/gis_tests/geoapp/test_indexes.py:33–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 4

create_sqlMethod · 0.95
IndexClass · 0.90
schema_editorMethod · 0.80
quote_nameMethod · 0.45

Tested by

no test coverage detected