MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_clear

Method test_clear

test/ext/test_mutable.py:335–345  ·  test/ext/test_mutable.py::_MutableDictTestBase.test_clear
(self)

Source from the content-addressed store, hash-verified

333 )
334
335 def test_clear(self):
336 sess = fixture_session()
337
338 f1 = Foo(data={class="st">"a": class="st">"b"})
339 sess.add(f1)
340 sess.commit()
341
342 f1.data.clear()
343 sess.commit()
344
345 eq_(f1.data, {})
346
347 def test_update(self):
348 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
clearMethod · 0.45

Tested by

no test coverage detected