From: Mike Bayer Date: Sat, 9 Mar 2013 23:17:13 +0000 (-0500) Subject: some tests that were never turned on... X-Git-Tag: rel_0_8_0~3^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b4f0d0a790734e226c65fcdb19f5ce634c4e237;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git some tests that were never turned on... --- 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" )