From 3b4f0d0a790734e226c65fcdb19f5ce634c4e237 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 9 Mar 2013 18:17:13 -0500 Subject: [PATCH] some tests that were never turned on... --- test/orm/test_rel_fn.py | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/test/orm/test_rel_fn.py b/test/orm/test_rel_fn.py index bad3a0dd77..cd871661b6 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" ) -- 2.47.2