Author: phd
Date: 2007-04-09 09:18:52 -0600 (Mon, 09 Apr 2007)
New Revision: 2496
Modified:
SQLObject/branches/0.7/docs/News.txt
SQLObject/branches/0.7/sqlobject/inheritance/tests/test_deep_inheritance.py
Log:
Fixed test_deep_inheritance.py - setup classes in the correct order
(required for Postgres 8.0+ which is strict about referential integrity).
Modified: SQLObject/branches/0.7/docs/News.txt
===================================================================
--- SQLObject/branches/0.7/docs/News.txt 2007-04-09 15:16:40 UTC (rev 2495)
+++ SQLObject/branches/0.7/docs/News.txt 2007-04-09 15:18:52 UTC (rev 2496)
@@ -7,6 +7,15 @@
.. _start:
+SQLObject 0.7.5
+===============
+
+Bug Fixes
+---------
+
+* Fixed test_deep_inheritance.py - setup classes in the correct order
+ (required for Postgres 8.0+ which is strict about referential integrity).
+
SQLObject 0.7.4
===============
Modified: SQLObject/branches/0.7/sqlobject/inheritance/tests/test_deep_inheritance.py
===================================================================
--- SQLObject/branches/0.7/sqlobject/inheritance/tests/test_deep_inheritance.py 2007-04-09 15:16:40 UTC (rev 2495)
+++ SQLObject/branches/0.7/sqlobject/inheritance/tests/test_deep_inheritance.py 2007-04-09 15:18:52 UTC (rev 2496)
@@ -23,12 +23,10 @@
Try to creae an Manager without specifying a position.
this should fail without leaving any partial records in
the database.
+
"""
+ setupClass([DIManager, DIEmployee, DIPerson])
- setupClass(DIManager)
- setupClass(DIEmployee)
- setupClass(DIPerson)
-
kwargs ={'firstName':'John', 'lastname':'Doe'}
raises(TypeError, DIManager, **kwargs)
#what we really need to check for is partial records in the database.
@@ -37,9 +35,7 @@
assert persons.count() == 0
def test_deep_inheritance():
- setupClass(DIManager)
- setupClass(DIEmployee)
- setupClass(DIPerson)
+ setupClass([DIManager, DIEmployee, DIPerson])
manager = DIManager(firstName='Project', lastName='Manager',
position='Project Manager')
|