MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_update

Method test_update

test/ext/test_mutable.py:347–357  ·  test/ext/test_mutable.py::_MutableDictTestBase.test_update
(self)

Source from the content-addressed store, hash-verified

345 eq_(f1.data, {})
346
347 def test_update(self):
348 sess = fixture_session()
349
350 f1 = Foo(data={class="st">"a": class="st">"b"})
351 sess.add(f1)
352 sess.commit()
353
354 f1.data.update({class="st">"a": class="st">"z"})
355 sess.commit()
356
357 eq_(f1.data, {class="st">"a": class="st">"z"})
358
359 def test_pop(self):
360 sess = fixture_session()

Callers

nothing calls this directly

Calls 6

fixture_sessionFunction · 0.90
eq_Function · 0.90
FooClass · 0.70
addMethod · 0.45
commitMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected