summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-03-09 18:17:13 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2013-03-09 18:17:13 -0500
commit3b4f0d0a790734e226c65fcdb19f5ce634c4e237 (patch)
tree121268f8477bf81681ad7b16d779e0dba63a19b5
parent6be35e3898c7a7726744dc2590598e0a5a20c76b (diff)
downloadsqlalchemy-3b4f0d0a790734e226c65fcdb19f5ce634c4e237.tar.gz
some tests that were never turned on...
-rw-r--r--test/orm/test_rel_fn.py17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/orm/test_rel_fn.py b/test/orm/test_rel_fn.py
index bad3a0dd7..cd871661b 100644
--- a/test/orm/test_rel_fn.py
+++ b/test/orm/test_rel_fn.py
@@ -997,19 +997,22 @@ class AdaptedJoinTest(_JoinFixtures, fixtures.TestBase, AssertsCompiledSQL):
)
class LazyClauseTest(_JoinFixtures, fixtures.TestBase, AssertsCompiledSQL):
+ __dialect__ = 'default'
- def _test_lazy_clause_o2m(self):
+ def test_lazy_clause_o2m(self):
joincond = self._join_fixture_o2m()
+ lazywhere, bind_to_col, equated_columns = joincond.create_lazy_clause()
self.assert_compile(
- relationships.create_lazy_clause(joincond),
- ""
+ lazywhere,
+ ":param_1 = rgt.lid"
)
- def _test_lazy_clause_o2m_reverse(self):
+ def test_lazy_clause_o2m_reverse(self):
joincond = self._join_fixture_o2m()
+ lazywhere, bind_to_col, equated_columns =\
+ joincond.create_lazy_clause(reverse_direction=True)
self.assert_compile(
- relationships.create_lazy_clause(joincond,
- reverse_direction=True),
- ""
+ lazywhere,
+ "lft.id = :param_1"
)