MCPcopy
hub / github.com/django/django / test_references_index

Method test_references_index

tests/backends/test_ddl_references.py:218–225  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

216 self.assertIs(statement.references_column("other", "column"), False)
217
218 def test_references_index(self):
219 statement = Statement(
220 "",
221 reference=MockReference("", {}, {}, {("table", "index")}),
222 non_reference="",
223 )
224 self.assertIs(statement.references_index("table", "index"), True)
225 self.assertIs(statement.references_index("other", "index"), False)
226
227 def test_rename_table_references(self):
228 reference = MockReference("", {"table"}, {}, {})

Callers

nothing calls this directly

Calls 3

references_indexMethod · 0.95
StatementClass · 0.90
MockReferenceClass · 0.85

Tested by

no test coverage detected