summaryrefslogtreecommitdiff
path: root/test/orm/inheritance/test_basic.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-03-26 20:44:47 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-03-26 20:44:47 -0400
commite3dbb87d94e9caaec66bb141852fcd53caec3dea (patch)
tree46d9f6d4da068801a1cbe9e6a8cddc2d065b13e9 /test/orm/inheritance/test_basic.py
parent0a695bb004a12a03c7493d647fed9ebdadca5fa0 (diff)
downloadsqlalchemy-e3dbb87d94e9caaec66bb141852fcd53caec3dea.tar.gz
- move _fixtures to work via the normal methods of _base.MappedTest, convert
all referncing tests to not use globals - tests that deal with pickle specifically load the fixture classes from test.lib.pickleable, which gets some more classes added - removed weird sa05 pickling tests that don't matter
Diffstat (limited to 'test/orm/inheritance/test_basic.py')
-rw-r--r--test/orm/inheritance/test_basic.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/test/orm/inheritance/test_basic.py b/test/orm/inheritance/test_basic.py
index ea7cf9a69..372adce56 100644
--- a/test/orm/inheritance/test_basic.py
+++ b/test/orm/inheritance/test_basic.py
@@ -178,7 +178,7 @@ class PolymorphicSynonymTest(_base.MappedTest):
Column('data', String(10), nullable=False))
def test_polymorphic_synonym(self):
- class T1(_fixtures.Base):
+ class T1(_base.ComparableEntity):
def info(self):
return "THE INFO IS:" + self._info
def _set_info(self, x):
@@ -318,13 +318,13 @@ class CascadeTest(_base.MappedTest):
Column('data', String(30)))
def test_cascade(self):
- class T1(_fixtures.Base):
+ class T1(_base.ComparableEntity):
pass
- class T2(_fixtures.Base):
+ class T2(_base.ComparableEntity):
pass
class T3(T2):
pass
- class T4(_fixtures.Base):
+ class T4(_base.ComparableEntity):
pass
mapper(T1, t1, properties={
@@ -743,7 +743,7 @@ class VersioningTest(_base.MappedTest):
self.tables.base,
self.tables.stuff)
- class Base(_fixtures.Base):
+ class Base(_base.ComparableEntity):
pass
class Sub(Base):
pass
@@ -794,7 +794,7 @@ class VersioningTest(_base.MappedTest):
def test_delete(self):
subtable, base = self.tables.subtable, self.tables.base
- class Base(_fixtures.Base):
+ class Base(_base.ComparableEntity):
pass
class Sub(Base):
pass
@@ -1661,13 +1661,13 @@ class DeleteOrphanTest(_base.MappedTest):
)
def test_orphan_message(self):
- class Base(_fixtures.Base):
+ class Base(_base.ComparableEntity):
pass
class SubClass(Base):
pass
- class Parent(_fixtures.Base):
+ class Parent(_base.ComparableEntity):
pass
mapper(Base, single, polymorphic_on=single.c.type, polymorphic_identity='base')