MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_replace_transient

Method test_replace_transient

test/orm/test_dynamic.py:2088–2102  ·  view source on GitHub ↗
(self, transient_fixture)

Source from the content-addressed store, hash-verified

2086 )
2087
2088 def test_replace_transient(self, transient_fixture):
2089 Address = self.classes.Address
2090
2091 u1, a1 = transient_fixture()
2092 a2, a3, a4, a5 = (
2093 Address(email_address="a2"),
2094 Address(email_address="a3"),
2095 Address(email_address="a4"),
2096 Address(email_address="a5"),
2097 )
2098
2099 u1.addresses = [a1, a2]
2100 u1.addresses = [a2, a3, a4, a5]
2101
2102 self._assert_history(u1, ([a2, a3, a4, a5], [], []))
2103
2104 @testing.combinations(True, False, argnames="autoflush")
2105 def test_replace_persistent(self, autoflush, persistent_fixture):

Callers

nothing calls this directly

Calls 2

_assert_historyMethod · 0.95
AddressClass · 0.70

Tested by

no test coverage detected