Update of /cvsroot/modeling/ProjectModeling/Modeling/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv4185/tests
Modified Files:
test_EditingContext_Global_Inheritance.py
Log Message:
Fixed: test_03_toOneFault_notifications() was causing an overflow on VARCHAR(20) storeArea attribute, after multiple runs
Index: test_EditingContext_Global_Inheritance.py
===================================================================
RCS file: /cvsroot/modeling/ProjectModeling/Modeling/tests/test_EditingContext_Global_Inheritance.py,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** test_EditingContext_Global_Inheritance.py 7 Jul 2003 14:57:14 -0000 1.13
--- test_EditingContext_Global_Inheritance.py 15 Jul 2003 11:07:10 -0000 1.14
***************
*** 132,136 ****
sqlExpr=pgAdaptor.expressionClass()()
! new_store_area=johnJr_1.getStoreArea()+'X'
sqlExpr.setStatement("update SALES_CLERK set STORE_AREA='%s' where id=%i"\
%(new_store_area, gid_1.keyValues().values()[0]))
--- 132,140 ----
sqlExpr=pgAdaptor.expressionClass()()
! original_store_area=johnJr_1.getStoreArea()
! if original_store_area=='AB':
! new_store_area='AC'
! else:
! new_store_area='AB'
sqlExpr.setStatement("update SALES_CLERK set STORE_AREA='%s' where id=%i"\
%(new_store_area, gid_1.keyValues().values()[0]))
***************
*** 142,146 ****
johnJr_2.willRead()
# Note: This also check that john2_Jr is of the correct class.
! self.failIf(johnJr_2.getStoreArea()!=johnJr_1.getStoreArea())
def test_04_validation(self):
--- 146,151 ----
johnJr_2.willRead()
# Note: This also check that john2_Jr is of the correct class.
! self.failIf(johnJr_2.getStoreArea()!=original_store_area)
! self.failIf(johnJr_1.getStoreArea()!=original_store_area)
def test_04_validation(self):
|