]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix sqlite tests
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Mar 2010 21:52:34 +0000 (17:52 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 19 Mar 2010 21:52:34 +0000 (17:52 -0400)
test/dialect/test_sqlite.py

index bb08fe34113ad054161e828ea3714702c7631ea6..7f5f553bd99ec4d0defe282132f130cd92a8e34b 100644 (file)
@@ -260,7 +260,7 @@ class DialectTest(TestBase, AssertsExecutionResults):
         try:
             cx.execute('ATTACH DATABASE ":memory:" AS  test_schema')
             dialect = cx.dialect
-            assert dialect.table_names(cx, 'test_schema') == []
+            assert dialect.get_table_names(cx, 'test_schema') == []
 
             meta = MetaData(cx)
             Table('created', meta, Column('id', Integer),
@@ -269,7 +269,7 @@ class DialectTest(TestBase, AssertsExecutionResults):
                                schema='test_schema')
             meta.create_all(cx)
 
-            eq_(dialect.table_names(cx, 'test_schema'),
+            eq_(dialect.get_table_names(cx, 'test_schema'),
                               ['created'])
             assert len(alt_master.c) > 0
 
@@ -293,7 +293,7 @@ class DialectTest(TestBase, AssertsExecutionResults):
             # note that sqlite_master is cleared, above
             meta.drop_all()
 
-            assert dialect.table_names(cx, 'test_schema') == []
+            assert dialect.get_table_names(cx, 'test_schema') == []
         finally:
             cx.execute('DETACH DATABASE test_schema')
 
@@ -303,7 +303,7 @@ class DialectTest(TestBase, AssertsExecutionResults):
         try:
             cx.execute('CREATE TEMPORARY TABLE tempy (id INT)')
 
-            assert 'tempy' in cx.dialect.table_names(cx, None)
+            assert 'tempy' in cx.dialect.get_table_names(cx, None)
 
             meta = MetaData(cx)
             tempy = Table('tempy', meta, autoload=True)