summaryrefslogtreecommitdiff
path: root/test/sql/selectable.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-02-11 00:28:39 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-02-11 00:28:39 +0000
commitc0b5a0446bf63bdac664421f49742f1156c1911a (patch)
tree9d7822f91325d23e512e77701c9f1280d968ea20 /test/sql/selectable.py
parent90c572b513fb33cb5cd17134efb6018abc76bb1f (diff)
downloadsqlalchemy-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/selectable.py')
-rwxr-xr-xtest/sql/selectable.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sql/selectable.py b/test/sql/selectable.py
index fe2f41b2b..c93c62825 100755
--- a/test/sql/selectable.py
+++ b/test/sql/selectable.py
@@ -23,7 +23,7 @@ table2 = Table('table2', metadata,
Column('coly', Integer),
)
-class SelectableTest(AssertMixin):
+class SelectableTest(TestBase, AssertsExecutionResults):
def testdistance(self):
# same column three times
s = select([table.c.col1.label('c2'), table.c.col1, table.c.col1.label('c1')])
@@ -212,7 +212,7 @@ class SelectableTest(AssertMixin):
assert u.corresponding_column(s.oid_column) is u.oid_column
assert u.corresponding_column(s2.oid_column) is u.oid_column
-class PrimaryKeyTest(AssertMixin):
+class PrimaryKeyTest(TestBase, AssertsExecutionResults):
def test_join_pk_collapse_implicit(self):
"""test that redundant columns in a join get 'collapsed' into a minimal primary key,
which is the root column along a chain of foreign key relationships."""
@@ -297,7 +297,7 @@ class PrimaryKeyTest(AssertMixin):
)
-class ReduceTest(AssertMixin):
+class ReduceTest(TestBase, AssertsExecutionResults):
def test_reduce(self):
meta = MetaData()
t1 = Table('t1', meta,
@@ -411,7 +411,7 @@ class ReduceTest(AssertMixin):
)
-class DerivedTest(AssertMixin):
+class DerivedTest(TestBase, AssertsExecutionResults):
def test_table(self):
meta = MetaData()
t1 = Table('t1', meta, Column('c1', Integer, primary_key=True), Column('c2', String(30)))