diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-17 17:48:29 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-03-17 17:48:29 -0400 |
| commit | 065fcbd9d2b463920d439c20d99a5a1cd7f216ed (patch) | |
| tree | 2230349df4cc7bc884f128e2c463c2e334152b7e /test/aaa_profiling/test_memusage.py | |
| parent | 95c0214356a55b6bc051d2b779e54d6de7b0b22e (diff) | |
| download | sqlalchemy-065fcbd9d2b463920d439c20d99a5a1cd7f216ed.tar.gz | |
- The official name for the relation() function is now
relationship(), to eliminate confusion over the relational
algebra term. relation() however will remain available
in equal capacity for the foreseeable future. [ticket:1740]
Diffstat (limited to 'test/aaa_profiling/test_memusage.py')
| -rw-r--r-- | test/aaa_profiling/test_memusage.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/aaa_profiling/test_memusage.py b/test/aaa_profiling/test_memusage.py index 057adb06a..ba1f67ddf 100644 --- a/test/aaa_profiling/test_memusage.py +++ b/test/aaa_profiling/test_memusage.py @@ -1,5 +1,5 @@ from sqlalchemy.test.testing import eq_ -from sqlalchemy.orm import mapper, relation, create_session, clear_mappers, sessionmaker +from sqlalchemy.orm import mapper, relationship, create_session, clear_mappers, sessionmaker from sqlalchemy.orm.mapper import _mapper_registry from sqlalchemy.orm.session import _sessions from sqlalchemy.util import jython @@ -92,7 +92,7 @@ class MemUsageTest(EnsureZeroed): metadata.create_all() m1 = mapper(A, table1, properties={ - "bs":relation(B, cascade="all, delete", order_by=table2.c.col1)}, + "bs":relationship(B, cascade="all, delete", order_by=table2.c.col1)}, order_by=table1.c.col1) m2 = mapper(B, table2) @@ -145,7 +145,7 @@ class MemUsageTest(EnsureZeroed): @profile_memory def go(): m1 = mapper(A, table1, properties={ - "bs":relation(B, order_by=table2.c.col1) + "bs":relationship(B, order_by=table2.c.col1) }) m2 = mapper(B, table2) @@ -271,7 +271,7 @@ class MemUsageTest(EnsureZeroed): pass mapper(A, table1, properties={ - 'bs':relation(B, secondary=table3, backref='as', order_by=table3.c.t1) + 'bs':relationship(B, secondary=table3, backref='as', order_by=table3.c.t1) }) mapper(B, table2) @@ -336,7 +336,7 @@ class MemUsageTest(EnsureZeroed): pass mapper(Foo, table1, properties={ - 'bars':relation(mapper(Bar, table2)) + 'bars':relationship(mapper(Bar, table2)) }) metadata.create_all() |
