MCPcopy Create free account
hub / github.com/sqlalchemy/sqlalchemy / test_del_no_proxy

Method test_del_no_proxy

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

Source from the content-addressed store, hash-verified

2912 assert a1.ab is None
2913
2914 def test_del_no_proxy(self):
2915 if not self.uselist:
2916 return
2917
2918 if self.useobject:
2919 A, AB, B = self.classes("A", "AB", "B")
2920 else:
2921 A, AB = self.classes("A", "AB")
2922
2923 b1 = B() if self.useobject else 5
2924 a1 = A()
2925 a1.b.append(b1)
2926
2927 del a1.ab
2928
2929 # this is what it does for now, so maintain that w/ assoc proxy
2930 eq_(a1.ab, [])
2931
2932 def test_del_already_nonpresent_no_proxy(self):
2933 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