MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_table_create_after

Method test_table_create_after

test/engine/test_ddlevents.py:57–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

55 )
56
57 def test_table_create_after(self):
58 table, bind = self.table, self.bind
59 canary = mock.Mock()
60 event.listen(table, "after_create", canary.after_create)
61
62 table.create(bind)
63 table.drop(bind)
64 eq_(
65 canary.mock_calls,
66 [
67 mock.call.after_create(
68 table,
69 self.bind,
70 checkfirst=CheckFirst.NONE,
71 _ddl_runner=mock.ANY,
72 _is_metadata_operation=mock.ANY,
73 )
74 ],
75 )
76
77 def test_table_create_both(self):
78 table, bind = self.table, self.bind

Callers

nothing calls this directly

Calls 5

eq_Function · 0.90
after_createMethod · 0.80
listenMethod · 0.45
createMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected