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

Method test_via_refresh_state

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

Source from the content-addressed store, hash-verified

2956 eq_(canary, [("refresh", {"id", "name"})])
2957
2958 def test_via_refresh_state(self):
2959 User = self.classes.User
2960
2961 canary = self._fixture()
2962
2963 sess = fixture_session()
2964
2965 u1 = User(name="u1")
2966 sess.add(u1)
2967 sess.commit()
2968
2969 u1.name
2970 eq_(canary, [("refresh", {"id", "name"})])
2971
2972 def test_was_expired(self):
2973 User = self.classes.User

Callers

nothing calls this directly

Calls 6

_fixtureMethod · 0.95
fixture_sessionFunction · 0.90
eq_Function · 0.90
UserClass · 0.70
addMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected