MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_backref_pop_transient

Method test_backref_pop_transient

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

Source from the content-addressed store, hash-verified

2010 self._assert_history(u1, ([], [], []))
2011
2012 def test_backref_pop_transient(self, transient_fixture):
2013 u1, a1 = transient_fixture(addresses_args={"backref": "user"})
2014 u1.addresses.add(a1)
2015
2016 self._assert_history(u1, ([a1], [], []))
2017
2018 a1.user = None
2019
2020 # removed from added
2021 self._assert_history(u1, ([], [], []))
2022
2023 def test_remove_persistent(self, persistent_fixture):
2024 u1, a1, s = persistent_fixture()

Callers

nothing calls this directly

Calls 2

_assert_historyMethod · 0.95
addMethod · 0.45

Tested by

no test coverage detected