MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_initial_key

Method test_initial_key

test/ext/test_baked.py:43–52  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

41 eq_(key, tuple(elem.__code__ for elem in elements))
42
43 def test_initial_key(self):
44 User = self.classes.User
45 session = fixture_session()
46
47 def l1():
48 return session.query(User)
49
50 q1 = self.bakery(l1)
51 self._assert_cache_key(q1._cache_key, [l1])
52 eq_(q1.steps, [l1])
53
54 def test_inplace_add(self):
55 User = self.classes.User

Callers

nothing calls this directly

Calls 4

_assert_cache_keyMethod · 0.95
fixture_sessionFunction · 0.90
eq_Function · 0.90
bakeryMethod · 0.80

Tested by

no test coverage detected