MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_in_place_mutation

Method test_in_place_mutation

test/ext/test_mutable.py:304–314  ·  test/ext/test_mutable.py::_MutableDictTestBase.test_in_place_mutation
(self)

Source from the content-addressed store, hash-verified

302 )
303
304 def test_in_place_mutation(self):
305 sess = fixture_session()
306
307 f1 = Foo(data={class="st">"a": class="st">"b"})
308 sess.add(f1)
309 sess.commit()
310
311 f1.data[class="st">"a"] = class="st">"c"
312 sess.commit()
313
314 eq_(f1.data, {class="st">"a": class="st">"c"})
315
316 def test_modified_event(self):
317 canary = mock.Mock()

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected