MCPcopy
hub / github.com/django/django / assertTableNotExists

Method assertTableNotExists

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

Source from the content-addressed store, hash-verified

43 self.assertIn(table, connections[using].introspection.table_names(cursor))
44
45 def assertTableNotExists(self, table, using="default"):
46 with connections[using].cursor() as cursor:
47 self.assertNotIn(
48 table, connections[using].introspection.table_names(cursor)
49 )
50
51 def assertColumnExists(self, table, column, using="default"):
52 self.assertIn(

Calls 2

cursorMethod · 0.80
table_namesMethod · 0.80

Tested by

no test coverage detected