MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_sort

Method test_sort

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

Source from the content-addressed store, hash-verified

716 eq_(f1.data, [1, 3])
717
718 def test_sort(self):
719 sess = fixture_session()
720
721 f1 = Foo(data=[1, 3, 2])
722 sess.add(f1)
723 sess.commit()
724
725 f1.data.sort()
726 sess.commit()
727
728 eq_(f1.data, [1, 2, 3])
729
730 def test_sort_w_key(self):
731 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
sortMethod · 0.45

Tested by

no test coverage detected