MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / test_del_no_proxy

Method test_del_no_proxy

test/ext/test_associationproxy.py:3020–3036  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3018 assert a1.ab is None
3019
3020 def test_del_no_proxy(self):
3021 if not self.uselist:
3022 return
3023
3024 if self.useobject:
3025 A, AB, B = self.classes("A", "AB", "B")
3026 else:
3027 A, AB = self.classes("A", "AB")
3028
3029 b1 = B() if self.useobject else 5
3030 a1 = A()
3031 a1.b.append(b1)
3032
3033 del a1.ab
3034
3035 # this is what it does for now, so maintain that w/ assoc proxy
3036 eq_(a1.ab, [])
3037
3038 def test_del_already_nonpresent_no_proxy(self):
3039 if not self.uselist:

Callers

nothing calls this directly

Calls 4

eq_Function · 0.90
BClass · 0.70
AClass · 0.70
appendMethod · 0.45

Tested by

no test coverage detected