diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-24 19:19:03 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-24 19:19:03 -0400 |
| commit | c6bceb77754bd72c462ce146f706758d1ad3da4a (patch) | |
| tree | 0b9c935221c572bd75f3c88fe849fb17595e0a79 /test/ext/test_associationproxy.py | |
| parent | 1675811029553501bb23084604c64d974dfe739c (diff) | |
| download | sqlalchemy-c6bceb77754bd72c462ce146f706758d1ad3da4a.tar.gz | |
- converted all lazy=True|False|None to 'select'|'joined'|'noload'
- converted all eager to joined in examples
- fixed beaker/advanced.py to reference RelationshipCache
Diffstat (limited to 'test/ext/test_associationproxy.py')
| -rw-r--r-- | test/ext/test_associationproxy.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/ext/test_associationproxy.py b/test/ext/test_associationproxy.py index ea1864c92..df51c322b 100644 --- a/test/ext/test_associationproxy.py +++ b/test/ext/test_associationproxy.py @@ -91,7 +91,7 @@ class _CollectionOperations(TestBase): self.name = name mapper(Parent, parents_table, properties={ - '_children': relationship(Child, lazy=False, + '_children': relationship(Child, lazy='joined', collection_class=collection_class)}) mapper(Child, children_table) @@ -654,7 +654,7 @@ class ProxyFactoryTest(ListTest): self.name = name mapper(Parent, parents_table, properties={ - '_children': relationship(Child, lazy=False, + '_children': relationship(Child, lazy='joined', collection_class=list)}) mapper(Child, children_table) @@ -701,7 +701,7 @@ class ScalarTest(TestBase): setattr(self, attr, kw[attr]) mapper(Parent, parents_table, properties={ - 'child': relationship(Child, lazy=False, + 'child': relationship(Child, lazy='joined', backref='parent', uselist=False)}) mapper(Child, children_table) @@ -836,7 +836,7 @@ class LazyLoadTest(TestBase): Parent, Child = self.Parent, self.Child mapper(Parent, self.table, properties={ - '_children': relationship(Child, lazy=True, + '_children': relationship(Child, lazy='select', collection_class=list)}) p = Parent('p') @@ -854,7 +854,7 @@ class LazyLoadTest(TestBase): Parent, Child = self.Parent, self.Child mapper(Parent, self.table, properties={ - '_children': relationship(Child, lazy=False, + '_children': relationship(Child, lazy='joined', collection_class=list)}) p = Parent('p') @@ -869,7 +869,7 @@ class LazyLoadTest(TestBase): Parent, Child = self.Parent, self.Child mapper(Parent, self.table, properties={ - '_children': relationship(Child, lazy=True, uselist=False)}) + '_children': relationship(Child, lazy='select', uselist=False)}) p = Parent('p') @@ -884,7 +884,7 @@ class LazyLoadTest(TestBase): Parent, Child = self.Parent, self.Child mapper(Parent, self.table, properties={ - '_children': relationship(Child, lazy=False, uselist=False)}) + '_children': relationship(Child, lazy='joined', uselist=False)}) p = Parent('p') |
