[SQL-CVS] r4582 - SQLObject/trunk/sqlobject/tests
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2013-02-10 18:51:04
|
Author: phd Date: Sun Feb 10 11:50:54 2013 New Revision: 4582 Log: Made the test works in all databases Modified: SQLObject/trunk/sqlobject/tests/test_identity.py Modified: SQLObject/trunk/sqlobject/tests/test_identity.py ============================================================================== --- SQLObject/trunk/sqlobject/tests/test_identity.py Tue Feb 5 13:23:32 2013 (r4581) +++ SQLObject/trunk/sqlobject/tests/test_identity.py Sun Feb 10 11:50:54 2013 (r4582) @@ -9,10 +9,8 @@ n = IntCol() def test_identity(): - if getConnection().dbName != "mssql": - return - - # create table + # (re)create table + TestIdentity.dropTable(connection=getConnection(), ifExists=True) setupClass(TestIdentity) # insert without giving identity @@ -22,7 +20,7 @@ assert(i1get.n == 100) # insert while giving identity - i1 = TestIdentity(id=2, n=200) + i2 = TestIdentity(id=2, n=200) # verify result i2get = TestIdentity.get(2) assert(i2get.n == 200) |