MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / load_tracker

Method load_tracker

test/orm/test_merge.py:46–56  ·  view source on GitHub ↗
(self, cls, canary=None)

Source from the content-addressed store, hash-verified

44 run_inserts = None
45
46 def load_tracker(self, cls, canary=None):
47 if canary is None:
48
49 def canary(instance, *args):
50 canary.called += 1
51
52 canary.called = 0
53
54 event.listen(cls, "load", canary)
55
56 return canary
57
58 def test_loader_options(self):
59 User, Address, addresses, users = (

Calls 1

listenMethod · 0.45

Tested by

no test coverage detected