MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_persistent_but_readded

Method test_persistent_but_readded

test/orm/test_dynamic.py:2135–2144  ·  view source on GitHub ↗
(self, autoflush, persistent_fixture)

Source from the content-addressed store, hash-verified

2133
2134 @testing.combinations(True, False, argnames="autoflush")
2135 def test_persistent_but_readded(self, autoflush, persistent_fixture):
2136 u1, a1, s = persistent_fixture(autoflush=autoflush)
2137 u1.addresses.add(a1)
2138 s.flush()
2139
2140 u1.addresses.add(a1)
2141
2142 self._assert_history(
2143 u1, ([], [a1], []), compare_passive=([a1], [], [])
2144 )
2145
2146 def test_missing_but_removed_noflush(self, persistent_fixture):
2147 u1, a1, s = persistent_fixture(autoflush=False)

Callers

nothing calls this directly

Calls 3

_assert_historyMethod · 0.95
addMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected