MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_unrelated_flush

Method test_unrelated_flush

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

Source from the content-addressed store, hash-verified

780 assert f2 in sess.dirty
781
782 def test_unrelated_flush(self):
783 sess = fixture_session()
784 f1 = Foo(data=[1, 2], unrelated_data="unrelated")
785 sess.add(f1)
786 sess.flush()
787 f1.unrelated_data = "unrelated 2"
788 sess.flush()
789 f1.data[0] = 3
790 sess.commit()
791 eq_(f1.data[0], 3)
792
793 def test_copy(self):
794 f1 = Foo(data=[1, 2])

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected