Update of /cvsroot/sqlobject/SQLObject/tests
In directory sc8-pr-cvs1:/tmp/cvs-serv1915/tests
Modified Files:
test.py
Log Message:
* Fixed validation -- fromPython and toPython were mixed up in places.
* Made sure validation/conversion happened everywhere it should.
* Fixed BoolCol to work like it should.
Index: test.py
===================================================================
RCS file: /cvsroot/sqlobject/SQLObject/tests/test.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** test.py 25 Sep 2003 20:40:25 -0000 1.30
--- test.py 26 Sep 2003 07:13:00 -0000 1.31
***************
*** 437,441 ****
created DATETIME NOT NULL,
happy char(1) DEFAULT 'Y' NOT NULL,
! wannahavefun BOOL DEFAULT FALSE NOT NULL
)
"""
--- 437,441 ----
created DATETIME NOT NULL,
happy char(1) DEFAULT 'Y' NOT NULL,
! wannahavefun TINYINT DEFAULT 0 NOT NULL
)
"""
***************
*** 639,643 ****
name = StringCol(validator=Validator.PlainText(), default='x')
name2 = StringCol(validator=Validator.ConfirmType(str), default='y')
! name3 = StringCol(validator=Validator.Wrapper(toPython=int), default=100)
class ValidationTest(SQLObjectTest):
--- 639,643 ----
name = StringCol(validator=Validator.PlainText(), default='x')
name2 = StringCol(validator=Validator.ConfirmType(str), default='y')
! name3 = StringCol(validator=Validator.Wrapper(fromPython=int), default=100)
class ValidationTest(SQLObjectTest):
***************
*** 692,697 ****
"""
! sqliteCreate = mysqlCreate
! firebirdCreate = mysqlCreate
mysqlDrop = """
--- 692,697 ----
"""
! sqliteCreate = postgresCreate
! firebirdCreate = postgresCreate
mysqlDrop = """
|