On Dec 26, 2010, at 9:02 AM, jerryji wrote:
> BTW, during testing, this _persistent_ user object dropped my jaw --
I think the "user = None" assignment has no effect in pdb since the existing
contents of locals() is fixed.
Otherwise the "rollback" behavior of your tests is why the PG database
Just to (partially) answer myself -- by enabling db logging, I see
that the insertion is not seen in other db sessions because it gets
rolled back, most likely done in unittest's setUp() and tearDown() --
though I still don't understand the persistent user object thing
Jerry
On Dec 26, 10:02 pm,
BTW, during testing, this _persistent_ user object dropped my jaw --
"""
> myapp/views/signup.py(73)signup_view()
-> user = model.User(user_name=user_name, email=email,
password=password)
(Pdb) n
(Pdb) user
(Pdb) user = None
(Pdb) user
(Pdb) user2 = model.User(user_name=user_name, email=email,
p