MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / _test_get

Method _test_get

test/orm/test_query.py:7335–7343  ·  view source on GitHub ↗
(self, fixture)

Source from the content-addressed store, hash-verified

7333 return Query
7334
7335 def _test_get(self, fixture):
7336 User = self.classes.User
7337
7338 s = fixture_session(query_cls=fixture())
7339
7340 assert s.get(User, 19) is None
7341 u = s.get(User, 7)
7342 u2 = s.get(User, 7)
7343 assert u is u2
7344
7345 def _test_o2m_lazyload(self, fixture):
7346 User, Address = self.classes("User", "Address")

Callers 4

test_plain_getMethod · 0.95
test_callable_getMethod · 0.95
test_subclass_getMethod · 0.95
test_fn_getMethod · 0.95

Calls 3

fixture_sessionFunction · 0.90
fixtureFunction · 0.50
getMethod · 0.45

Tested by

no test coverage detected