MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_extend

Method test_extend

test/ext/test_mutable.py:657–667  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

655 eq_(f1.data, [1, 2, 5])
656
657 def test_extend(self):
658 sess = fixture_session()
659
660 f1 = Foo(data=[1, 2])
661 sess.add(f1)
662 sess.commit()
663
664 f1.data.extend([5])
665 sess.commit()
666
667 eq_(f1.data, [1, 2, 5])
668
669 def test_operator_extend(self):
670 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
extendMethod · 0.45

Tested by

no test coverage detected