MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_populate_existing

Method test_populate_existing

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

Source from the content-addressed store, hash-verified

3014 eq_(canary, [("refresh", {"name"})])
3015
3016 def test_populate_existing(self):
3017 User = self.classes.User
3018
3019 canary = self._fixture()
3020
3021 sess = fixture_session()
3022
3023 u1 = User(name="u1")
3024 sess.add(u1)
3025 sess.commit()
3026
3027 sess.query(User).populate_existing().first()
3028 eq_(canary, [("refresh", None)])
3029
3030
3031class SessionEventsTest(RemoveORMEventsGlobally, _fixtures.FixtureTest):

Callers

nothing calls this directly

Calls 9

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

Tested by

no test coverage detected