joinedload, defaultload
from sqlalchemy.testing import eq_, AssertsCompiledSQL
from test.orm import _fixtures
-
+from sqlalchemy.orm import strategies
class DeferredTest(AssertsCompiledSQL, _fixtures.FixtureTest):
addresses = self.tables.addresses
orders = self.tables.orders
- mapper(User, users, properties={
- "addresses": relationship(Address, lazy="joined"),
- "orders": relationship(Order, lazy="joined")
- })
+ mapper(User, users, properties=util.OrderedDict([
+ ("addresses", relationship(Address, lazy="joined")),
+ ("orders", relationship(Order, lazy="joined"))
+ ]))
+
mapper(Address, addresses)
mapper(Order, orders)
# TEST: test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_7_multiview
-test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_7_multiview 2.7_postgresql_psycopg2_cextensions 2300
+test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_7_multiview 2.7_postgresql_psycopg2_cextensions 2424
test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_7_multiview 2.7_postgresql_psycopg2_nocextensions 2559
test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_7_multiview 3.2_postgresql_psycopg2_nocextensions 2483
test.aaa_profiling.test_zoomark.ZooMarkTest.test_profile_7_multiview 3.3_postgresql_psycopg2_cextensions 2460