MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_remove

Method test_remove

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

Source from the content-addressed store, hash-verified

1010 eq_(f1.data, {1, 5})
1011
1012 def test_remove(self):
1013 sess = fixture_session()
1014
1015 f1 = Foo(data={1, 2, 3})
1016 sess.add(f1)
1017 sess.commit()
1018
1019 f1.data.remove(2)
1020 sess.commit()
1021
1022 eq_(f1.data, {1, 3})
1023
1024 def test_discard(self):
1025 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
removeMethod · 0.45

Tested by

no test coverage detected