MCPcopy
hub / github.com/django/django / test_descending_columns_list_sql

Method test_descending_columns_list_sql

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

Source from the content-addressed store, hash-verified

80
81 @skipUnlessDBFeature("supports_index_column_ordering")
82 def test_descending_columns_list_sql(self):
83 index = Index(fields=["-headline"], name="whitespace_idx")
84 editor = connection.schema_editor()
85 self.assertIn(
86 "(%s DESC)" % editor.quote_name("headline"),
87 str(index.create_sql(Article, editor)),
88 )
89
90 @skipUnlessDBFeature("can_create_inline_fk", "can_rollback_ddl")
91 def test_alter_field_unique_false_removes_deferred_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