summaryrefslogtreecommitdiff
path: root/test/orm/test_generative.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-03-27 15:04:06 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-03-27 15:04:06 -0400
commita3083eabf467e7f36db0850342758ce162c3eef8 (patch)
treec5df6fc158ea92c4b4cc1ae0f7709a4cb25d8a5e /test/orm/test_generative.py
parentd0156a75ffab342e7ef299cdea9ee0a0b6f8bf0d (diff)
downloadsqlalchemy-a3083eabf467e7f36db0850342758ce162c3eef8.tar.gz
- move all the setup_classes(cls) and setup_mappers(cls) to use a
local cls.Basic, cls.Comparable base class so that there is no ambiguity or hash identity behaviors getting in the way of class registration.
Diffstat (limited to 'test/orm/test_generative.py')
-rw-r--r--test/orm/test_generative.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/orm/test_generative.py b/test/orm/test_generative.py
index 9eb90d4e9..35fc0e397 100644
--- a/test/orm/test_generative.py
+++ b/test/orm/test_generative.py
@@ -30,7 +30,7 @@ class GenerativeQueryTest(_base.MappedTest):
def setup_mappers(cls):
foo = cls.tables.foo
- class Foo(_base.BasicEntity):
+ class Foo(cls.Basic):
pass
mapper(Foo, foo)
@@ -168,9 +168,9 @@ class GenerativeTest2(_base.MappedTest):
def setup_mappers(cls):
table2, table1 = cls.tables.table2, cls.tables.table1
- class Obj1(_base.BasicEntity):
+ class Obj1(cls.Basic):
pass
- class Obj2(_base.BasicEntity):
+ class Obj2(cls.Basic):
pass
mapper(Obj1, table1)
@@ -296,9 +296,9 @@ class CaseSensitiveTest(_base.MappedTest):
def setup_mappers(cls):
Table2, Table1 = cls.tables.Table2, cls.tables.Table1
- class Obj1(_base.BasicEntity):
+ class Obj1(cls.Basic):
pass
- class Obj2(_base.BasicEntity):
+ class Obj2(cls.Basic):
pass
mapper(Obj1, Table1)