summaryrefslogtreecommitdiff
path: root/test/engine/test_reflection.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-26 20:50:57 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-26 20:50:57 -0400
commitd2358629c9ea7f12718f32b64c7de7f2030dcd32 (patch)
tree1933ad41f00c94c00b9590e72f275e94e04f69ce /test/engine/test_reflection.py
parente65cb04974cc35e6f8301b9b7bc2a02d11edf139 (diff)
downloadsqlalchemy-d2358629c9ea7f12718f32b64c7de7f2030dcd32.tar.gz
- scale up for mysql, sqlite
Diffstat (limited to 'test/engine/test_reflection.py')
-rw-r--r--test/engine/test_reflection.py23
1 files changed, 14 insertions, 9 deletions
diff --git a/test/engine/test_reflection.py b/test/engine/test_reflection.py
index 1db37851d..1ddae6b40 100644
--- a/test/engine/test_reflection.py
+++ b/test/engine/test_reflection.py
@@ -1237,8 +1237,10 @@ class SchemaTest(fixtures.TestBase):
@testing.requires.schemas
@testing.requires.cross_schema_fk_reflection
def test_has_schema(self):
- eq_(testing.db.dialect.has_schema(testing.db, 'test_schema'), True)
- eq_(testing.db.dialect.has_schema(testing.db, 'sa_fake_schema_123'), False)
+ eq_(testing.db.dialect.has_schema(testing.db,
+ testing.config.test_schema), True)
+ eq_(testing.db.dialect.has_schema(testing.db,
+ 'sa_fake_schema_123'), False)
@testing.requires.schemas
@testing.fails_on('sqlite', 'FIXME: unknown')
@@ -1320,14 +1322,17 @@ class SchemaTest(fixtures.TestBase):
@testing.provide_metadata
def test_metadata_reflect_schema(self):
metadata = self.metadata
- createTables(metadata, "test_schema")
+ createTables(metadata, testing.config.test_schema)
metadata.create_all()
- m2 = MetaData(schema="test_schema", bind=testing.db)
+ m2 = MetaData(schema=testing.config.test_schema, bind=testing.db)
m2.reflect()
eq_(
set(m2.tables),
- set(['test_schema.dingalings', 'test_schema.users',
- 'test_schema.email_addresses'])
+ set([
+ '%s.dingalings' % testing.config.test_schema,
+ '%s.users' % testing.config.test_schema,
+ '%s.email_addresses' % testing.config.test_schema
+ ])
)
@testing.requires.schemas
@@ -1339,16 +1344,16 @@ class SchemaTest(fixtures.TestBase):
t2 = Table('t', self.metadata,
Column('id1', sa.ForeignKey('t.id')),
- schema="test_schema"
+ schema=testing.config.test_schema
)
self.metadata.create_all()
m2 = MetaData()
- m2.reflect(testing.db, schema="test_schema")
+ m2.reflect(testing.db, schema=testing.config.test_schema)
m3 = MetaData()
m3.reflect(testing.db)
- m3.reflect(testing.db, schema="test_schema")
+ m3.reflect(testing.db, schema=testing.config.test_schema)
eq_(
set((t.name, t.schema) for t in m2.tables.values()),