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

Method test_clear

test/ext/test_mutable.py:878–888  ·  test/ext/test_mutable.py::_MutableSetTestBase.test_clear
(self)

Source from the content-addressed store, hash-verified

876 )
877
878 def test_clear(self):
879 sess = fixture_session()
880
881 f1 = Foo(data={1, 2})
882 sess.add(f1)
883 sess.commit()
884
885 f1.data.clear()
886 sess.commit()
887
888 eq_(f1.data, set())
889
890 def test_pop(self):
891 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