MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_remove_persistent

Method test_remove_persistent

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

Source from the content-addressed store, hash-verified

2021 self._assert_history(u1, ([], [], []))
2022
2023 def test_remove_persistent(self, persistent_fixture):
2024 u1, a1, s = persistent_fixture()
2025 u1.addresses.add(a1)
2026 s.flush()
2027 s.expire_all()
2028
2029 u1.addresses.remove(a1)
2030
2031 self._assert_history(u1, ([], [], [a1]))
2032
2033 def test_backref_pop_persistent_autoflush_o2m_active_hist(
2034 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