MCPcopy
hub / github.com/django/django / assertColumnExists

Method assertColumnExists

tests/migrations/test_base.py:51–54  ·  view source on GitHub ↗
(self, table, column, using="default")

Source from the content-addressed store, hash-verified

49 )
50
51 def assertColumnExists(self, table, column, using="default"):
52 self.assertIn(
53 column, [c.name for c in self.get_table_description(table, using=using)]
54 )
55
56 def assertColumnNotExists(self, table, column, using="default"):
57 self.assertNotIn(

Calls 1

get_table_descriptionMethod · 0.95

Tested by

no test coverage detected