summaryrefslogtreecommitdiff
path: root/test/orm/cascade.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-02-11 00:28:39 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-02-11 00:28:39 +0000
commitc0b5a0446bf63bdac664421f49742f1156c1911a (patch)
tree9d7822f91325d23e512e77701c9f1280d968ea20 /test/orm/cascade.py
parent90c572b513fb33cb5cd17134efb6018abc76bb1f (diff)
downloadsqlalchemy-c0b5a0446bf63bdac664421f49742f1156c1911a.tar.gz
- updated the naming scheme of the base test classes in test/testlib/testing.py;
tests extend from either TestBase or ORMTest, using additional mixins for special assertion methods as needed
Diffstat (limited to 'test/orm/cascade.py')
-rw-r--r--test/orm/cascade.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/orm/cascade.py b/test/orm/cascade.py
index aa497d81b..722265577 100644
--- a/test/orm/cascade.py
+++ b/test/orm/cascade.py
@@ -7,7 +7,7 @@ from sqlalchemy.ext.sessioncontext import SessionContext
from testlib import *
import testlib.tables as tables
-class O2MCascadeTest(AssertMixin):
+class O2MCascadeTest(TestBase, AssertsExecutionResults):
def tearDown(self):
tables.delete()
@@ -175,7 +175,7 @@ class O2MCascadeTest(AssertMixin):
self.assert_(tables.orderitems.count(tables.orders.c.user_id.in_(ids) &(tables.orderitems.c.order_id==tables.orders.c.order_id)).scalar() == 0)
-class M2OCascadeTest(AssertMixin):
+class M2OCascadeTest(TestBase, AssertsExecutionResults):
def tearDown(self):
ctx.current.clear()
for t in metadata.table_iterator(reverse=True):
@@ -275,7 +275,7 @@ class M2OCascadeTest(AssertMixin):
-class M2MCascadeTest(AssertMixin):
+class M2MCascadeTest(TestBase, AssertsExecutionResults):
def setUpAll(self):
global metadata, a, b, atob
metadata = MetaData(testing.db)
@@ -470,7 +470,7 @@ class UnsavedOrphansTest2(ORMTest):
assert item.id is None
assert attr.id is None
-class DoubleParentOrphanTest(AssertMixin):
+class DoubleParentOrphanTest(TestBase, AssertsExecutionResults):
"""test orphan detection for an entity with two parent relations"""
def setUpAll(self):
@@ -537,7 +537,7 @@ class DoubleParentOrphanTest(AssertMixin):
except exceptions.FlushError, e:
assert True
-class CollectionAssignmentOrphanTest(AssertMixin):
+class CollectionAssignmentOrphanTest(TestBase, AssertsExecutionResults):
def setUpAll(self):
global metadata, table_a, table_b