MCPcopy
hub / github.com/django/django / test_columns_list_sql

Method test_columns_list_sql

tests/indexes/tests.py:73–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

71 )
72
73 def test_columns_list_sql(self):
74 index = Index(fields=["headline"], name="whitespace_idx")
75 editor = connection.schema_editor()
76 self.assertIn(
77 "(%s)" % editor.quote_name("headline"),
78 str(index.create_sql(Article, editor)),
79 )
80
81 @skipUnlessDBFeature("supports_index_column_ordering")
82 def test_descending_columns_list_sql(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