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

Method test_attrs_on_rollback

test/orm/test_transaction.py:1291–1297  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1289 __sparse_driver_backend__ = True
1290
1291 def test_attrs_on_rollback(self):
1292 User = self.classes.User
1293 sess = fixture_session()
1294 u1 = sess.get(User, 7)
1295 u1.name = "ed"
1296 sess.rollback()
1297 eq_(u1.name, "jack")
1298
1299 def test_commit_persistent(self):
1300 User = self.classes.User

Callers

nothing calls this directly

Calls 4

fixture_sessionFunction · 0.90
eq_Function · 0.90
getMethod · 0.45
rollbackMethod · 0.45

Tested by

no test coverage detected