~ubuntu-branches/debian/sid/sqlalchemy/sid

« back to all changes in this revision

Viewing changes to test/orm/test_inspect.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2014-06-27 20:17:13 UTC
  • mfrom: (1.4.28)
  • Revision ID: package-import@ubuntu.com-20140627201713-g6p1kq8q1qenztrv
Tags: 0.9.6-1
* New upstream release
* Remove Python 3.X build tag files, thanks to Matthias Urlichs for the
  patch (closes: #747852)
* python-fdb isn't in the Debian archive yet so default dialect for firebird://
  URLs is changed to obsolete kinterbasdb, thanks to Russell Stuart for the
  patch (closes: #752145)

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        user_table = self.tables.users
72
72
        addresses_table = self.tables.addresses
73
73
        mapper(Foo, user_table, with_polymorphic=(Bar,))
74
 
        mapper(Bar, addresses_table, inherits=Foo)
 
74
        mapper(Bar, addresses_table, inherits=Foo, properties={
 
75
                'address_id': addresses_table.c.id
 
76
            })
75
77
        i1 = inspect(Foo)
76
78
        i2 = inspect(Foo)
77
79
        assert i1.selectable is i2.selectable