]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
some tests that were never turned on...
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Mar 2013 23:17:13 +0000 (18:17 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 9 Mar 2013 23:17:13 +0000 (18:17 -0500)
test/orm/test_rel_fn.py

index bad3a0dd770977fb7befec13361b8a52ddb890c5..cd871661b617de4e146820aae51004c44491c362 100644 (file)
@@ -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"
         )