MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_remove_persistent

Method test_remove_persistent

test/orm/test_dynamic.py:2072–2080  ·  view source on GitHub ↗
(self, persistent_fixture)

Source from the content-addressed store, hash-verified

2070 self._assert_history(u1, ([], [], []))
2071
2072 def test_remove_persistent(self, persistent_fixture):
2073 u1, a1, s = persistent_fixture()
2074 u1.addresses.add(a1)
2075 s.flush()
2076 s.expire_all()
2077
2078 u1.addresses.remove(a1)
2079
2080 self._assert_history(u1, ([], [], [a1]))
2081
2082 def test_backref_pop_persistent_autoflush_o2m_active_hist(
2083 self, persistent_fixture

Callers

nothing calls this directly

Calls 5

_assert_historyMethod · 0.95
addMethod · 0.45
flushMethod · 0.45
expire_allMethod · 0.45
removeMethod · 0.45

Tested by

no test coverage detected