MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_coerce_none

Method test_coerce_none

test/ext/test_mutable.py:289–294  ·  test/ext/test_mutable.py::_MutableDictTestBase.test_coerce_none
(self)

Source from the content-addressed store, hash-verified

287 cls.mapper_registry.map_imperatively(Foo, foo)
288
289 def test_coerce_none(self):
290 sess = fixture_session()
291 f1 = Foo(data=None)
292 sess.add(f1)
293 sess.commit()
294 eq_(f1.data, None)
295
296 def test_coerce_raise(self):
297 assert_raises_message(

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