From 17d3c8764e020379e54053bca0b0a2bc71d48aa0 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Sat, 12 Jan 2008 22:03:42 +0000 Subject: - testbase is gone, replaced by testenv - Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase - testing.db has the configured db - Fixed up the perf/* scripts --- test/engine/metadata.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/engine/metadata.py') diff --git a/test/engine/metadata.py b/test/engine/metadata.py index 609c8deae..923f0334e 100644 --- a/test/engine/metadata.py +++ b/test/engine/metadata.py @@ -1,4 +1,4 @@ -import testbase +import testenv; testenv.configure_for_tests() from sqlalchemy import * from sqlalchemy import exceptions from testlib import * @@ -8,7 +8,7 @@ class MetaDataTest(PersistTest): metadata = MetaData() t1 = Table('table1', metadata, Column('col1', Integer, primary_key=True), Column('col2', String(20))) - metadata.bind = testbase.db + metadata.bind = testing.db metadata.create_all() try: assert t1.count().scalar() == 0 @@ -21,7 +21,7 @@ class MetaDataTest(PersistTest): t1 = Table('table1', metadata, Column('col1', Integer, primary_key=True), Column('col2', String(20))) - metadata.bind = testbase.db + metadata.bind = testing.db metadata.create_all() try: try: @@ -33,6 +33,6 @@ class MetaDataTest(PersistTest): assert str(e) == "Table 'table1' is already defined for this MetaData instance." finally: metadata.drop_all() - + if __name__ == '__main__': - testbase.main() + testenv.main() -- cgit v1.2.1