diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-11 00:28:39 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-02-11 00:28:39 +0000 |
commit | c0b5a0446bf63bdac664421f49742f1156c1911a (patch) | |
tree | 9d7822f91325d23e512e77701c9f1280d968ea20 /test/sql/generative.py | |
parent | 90c572b513fb33cb5cd17134efb6018abc76bb1f (diff) | |
download | sqlalchemy-c0b5a0446bf63bdac664421f49742f1156c1911a.tar.gz |
- updated the naming scheme of the base test classes in test/testlib/testing.py;
tests extend from either TestBase or ORMTest, using additional mixins for
special assertion methods as needed
Diffstat (limited to 'test/sql/generative.py')
-rw-r--r-- | test/sql/generative.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sql/generative.py b/test/sql/generative.py index 26d78c6f0..831c2e287 100644 --- a/test/sql/generative.py +++ b/test/sql/generative.py @@ -8,7 +8,7 @@ from sqlalchemy import util from sqlalchemy.sql import util as sql_util -class TraversalTest(AssertMixin): +class TraversalTest(TestBase, AssertsExecutionResults): """test ClauseVisitor's traversal, particularly its ability to copy and modify a ClauseElement in place.""" @@ -138,7 +138,7 @@ class TraversalTest(AssertMixin): assert struct3 == s3 -class ClauseTest(SQLCompileTest): +class ClauseTest(TestBase, AssertsCompiledSQL): """test copy-in-place behavior of various ClauseElements.""" def setUpAll(self): @@ -270,7 +270,7 @@ class ClauseTest(SQLCompileTest): self.assert_compile(Vis().traverse(s, clone=True), "SELECT * FROM table1 WHERE table1.col1 = table2.col1 AND table1.col2 = :table1_col2_1") -class ClauseAdapterTest(SQLCompileTest): +class ClauseAdapterTest(TestBase, AssertsCompiledSQL): def setUpAll(self): global t1, t2 t1 = table("table1", @@ -410,7 +410,7 @@ class ClauseAdapterTest(SQLCompileTest): "LEFT OUTER JOIN table1 AS bar ON anon_1.col1 = bar.col1") -class SelectTest(SQLCompileTest): +class SelectTest(TestBase, AssertsCompiledSQL): """tests the generative capability of Select""" def setUpAll(self): |