MCPcopy Index your code
hub / github.com/sqlalchemy/sqlalchemy / test_just_loaded

Method test_just_loaded

test/orm/test_events.py:2748–2761  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2746 return canary
2747
2748 def test_just_loaded(self):
2749 User = self.classes.User
2750
2751 canary = self._fixture()
2752
2753 sess = fixture_session()
2754
2755 u1 = User(name="u1")
2756 sess.add(u1)
2757 sess.commit()
2758 sess.close()
2759
2760 sess.query(User).first()
2761 eq_(canary, ["load"])
2762
2763 def test_repeated_rows(self):
2764 User = self.classes.User

Callers

nothing calls this directly

Calls 9

_fixtureMethod · 0.95
fixture_sessionFunction · 0.90
eq_Function · 0.90
UserClass · 0.70
addMethod · 0.45
commitMethod · 0.45
closeMethod · 0.45
firstMethod · 0.45
queryMethod · 0.45

Tested by

no test coverage detected