MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_table_create_after

Method test_table_create_after

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

Source from the content-addressed store, hash-verified

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