summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-07-16 20:09:38 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-07-16 20:09:38 -0400
commite45a4150fdd7e7f58dbe343706782a59a10d703b (patch)
tree735e55828deca4583fe7bf7fd4c6f9a7b8ecc48f /test
parent747250587491ad76e30177b232daec5928f5b36d (diff)
downloadsqlalchemy-e45a4150fdd7e7f58dbe343706782a59a10d703b.tar.gz
- totally remove _entity_info and _extended_entity_info, replacing all usage
with inspect()
Diffstat (limited to 'test')
-rw-r--r--test/orm/test_inspect.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/orm/test_inspect.py b/test/orm/test_inspect.py
index 4ee01ac62..487182fac 100644
--- a/test/orm/test_inspect.py
+++ b/test/orm/test_inspect.py
@@ -62,6 +62,20 @@ class TestORMInspection(_fixtures.FixtureTest):
assert not insp.is_selectable
assert not insp.is_aliased_class
+ def test_mapper_selectable_fixed(self):
+ from sqlalchemy.orm import mapper
+ class Foo(object):
+ pass
+ class Bar(Foo):
+ pass
+ user_table = self.tables.users
+ addresses_table = self.tables.addresses
+ mapper(Foo, user_table, with_polymorphic=(Bar,))
+ mapper(Bar, addresses_table, inherits=Foo)
+ i1 = inspect(Foo)
+ i2 = inspect(Foo)
+ assert i1.selectable is i2.selectable
+
def test_aliased_class(self):
Address = self.classes.Address
ualias = aliased(Address)