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

Method test_commit_persistent

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

Source from the content-addressed store, hash-verified

1297 eq_(u1.name, "jack")
1298
1299 def test_commit_persistent(self):
1300 User = self.classes.User
1301 sess = fixture_session()
1302 u1 = sess.get(User, 7)
1303 u1.name = "ed"
1304 sess.flush()
1305 sess.commit()
1306 eq_(u1.name, "ed")
1307
1308 def test_concurrent_commit_persistent(self):
1309 User = self.classes.User

Callers

nothing calls this directly

Calls 5

fixture_sessionFunction · 0.90
eq_Function · 0.90
getMethod · 0.45
flushMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected