[Modeling-cvs] ProjectModeling/Modeling/tests test_EditingContext_Global.py,1.18,1.19
Status: Abandoned
Brought to you by:
sbigaret
From: <sbi...@us...> - 2003-03-27 11:48:01
|
Update of /cvsroot/modeling/ProjectModeling/Modeling/tests In directory sc8-pr-cvs1:/tmp/cvs-serv15541/tests Modified Files: test_EditingContext_Global.py Log Message: Fixed: an newly inserted object with a PK attribute marked as class property did not get its value after EditingContext.saveChanges(). Details in: - EditingContext.handleNotification() - test_EC_Global.test_17_insertedObject_and_PK_as_classProperty() - testPackages.AuthorBooks: entity Book now has its PK 'id' set as class property Index: test_EditingContext_Global.py =================================================================== RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** test_EditingContext_Global.py 14 Mar 2003 11:40:13 -0000 1.18 --- test_EditingContext_Global.py 27 Mar 2003 11:47:57 -0000 1.19 *************** *** 864,867 **** --- 864,877 ---- self.failIf(len(toManySnap)!=1) + def test_17_insertedObject_and_PK_as_classProperty(self): + "[EC] Checks that a PK/class prop. gets its value after saving changes" + ec=EditingContext() + b=Book() + b.setTitle('dummy title') + ec.insertObject(b) + ec.saveChanges() + gid=ec.globalIDForObject(b) + self.failUnless(b.getId() == gid.keyValues()['id']) + def test_999_customSQLQuery(self): "[EditingContext] customSQLQuery" |