[SQL-CVS] r4552 - SQLObject/branches/1.2/sqlobject/tests
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: <sub...@co...> - 2012-10-06 16:38:25
|
Author: phd Date: Sat Oct 6 10:38:19 2012 New Revision: 4552 Log: Drop table in case the test is being run for the second time on the same DB Modified: SQLObject/branches/1.2/sqlobject/tests/test_perConnection.py Modified: SQLObject/branches/1.2/sqlobject/tests/test_perConnection.py ============================================================================== --- SQLObject/branches/1.2/sqlobject/tests/test_perConnection.py Sat Oct 6 09:30:42 2012 (r4551) +++ SQLObject/branches/1.2/sqlobject/tests/test_perConnection.py Sat Oct 6 10:38:19 2012 (r4552) @@ -10,6 +10,7 @@ def test_perConnection(): connection = getConnection() + TestPerConnection.dropTable(connection=connection, ifExists=True) TestPerConnection.createTable(connection=connection) TestPerConnection(test='test', connection=connection) assert len(list(TestPerConnection.select(TestPerConnection.q.test=='test', connection=connection))) == 1 |