While working on this issue quoted below, I added a doc-test to check this regression. Anyhow, while this test does the same as in the GUI (create a Member, add a party, save the member; no other data entered), the doc-test does not fail: After saving
None, while when using the GUI, it is the empty string.
Is this intented behavior? Anything missing in my regression-test?
This is the doc-test to check the regression (shortened here, but you get the idea):
Create first member:: >>> Member = Model.get('association.member') >>> member1 = Member() >>> member1.party = party1 >>> member1.save() Create a second member - this failed due to ``code`` being an empty string instead of ``NULL``:: >>> member2 = Member() >>> member2.party = party2 >>> member2.save()
I would expect
member2.save() to fail, as it would when adding a new “Member” in the GUI. Anyhow it does not.