diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-14 16:59:49 +0000 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2007-11-14 16:59:49 +0000 |
| commit | 64b7a0cd6e06b03fd8186d50dc9b9945d7fb2695 (patch) | |
| tree | 77af5b1169f9afe7f15459e3fff172d9495fb5eb /test/testlib | |
| parent | a03aa84c31bee4c13a32612109c79e86a2afcd53 (diff) | |
| download | sqlalchemy-64b7a0cd6e06b03fd8186d50dc9b9945d7fb2695.tar.gz | |
modified last commit; the eager loader only undefers columns from the primary mapped table.
Diffstat (limited to 'test/testlib')
| -rw-r--r-- | test/testlib/fixtures.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/testlib/fixtures.py b/test/testlib/fixtures.py index 6baf16bf0..9105a2937 100644 --- a/test/testlib/fixtures.py +++ b/test/testlib/fixtures.py @@ -69,6 +69,7 @@ class Order(Base):pass class Item(Base):pass class Keyword(Base):pass class Address(Base):pass +class Dingaling(Base):pass metadata = MetaData() @@ -89,6 +90,12 @@ addresses = Table('addresses', metadata, Column('user_id', None, ForeignKey('users.id')), Column('email_address', String(50), nullable=False)) +dingalings = Table("dingalings", metadata, + Column('id', Integer, primary_key=True), + Column('address_id', None, ForeignKey('addresses.id')), + Column('data', String(30)) + ) + items = Table('items', metadata, Column('id', Integer, primary_key=True), Column('description', String(30), nullable=False) @@ -122,6 +129,10 @@ def install_fixture_data(): dict(id = 4, user_id = 8, email_address = "ed@lala.com"), dict(id = 5, user_id = 9, email_address = "fred@fred.com"), ) + dingalings.insert().execute( + dict(id=1, address_id=2, data='ding 1/2'), + dict(id=2, address_id=5, data='ding 2/5'), + ) orders.insert().execute( dict(id = 1, user_id = 7, description = 'order 1', isopen=0, address_id=1), dict(id = 2, user_id = 9, description = 'order 2', isopen=0, address_id=4), |
