diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-03-09 18:17:13 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-03-09 18:17:13 -0500 |
| commit | 3b4f0d0a790734e226c65fcdb19f5ce634c4e237 (patch) | |
| tree | 121268f8477bf81681ad7b16d779e0dba63a19b5 | |
| parent | 6be35e3898c7a7726744dc2590598e0a5a20c76b (diff) | |
| download | sqlalchemy-3b4f0d0a790734e226c65fcdb19f5ce634c4e237.tar.gz | |
some tests that were never turned on...
| -rw-r--r-- | test/orm/test_rel_fn.py | 17 |
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" ) |
