MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_populate_existing

Method test_populate_existing

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

Source from the content-addressed store, hash-verified

2750 eq_(canary, [("refresh", {"name"})])
2751
2752 def test_populate_existing(self):
2753 User = self.classes.User
2754
2755 canary = self._fixture()
2756
2757 sess = fixture_session()
2758
2759 u1 = User(name="u1")
2760 sess.add(u1)
2761 sess.commit()
2762
2763 sess.query(User).populate_existing().first()
2764 eq_(canary, [("refresh", None)])
2765
2766
2767class 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