diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
commit | 17d3c8764e020379e54053bca0b0a2bc71d48aa0 (patch) | |
tree | 0b46f1ddc57292b8f5bfbc28ab1679230f63e426 /test/sql/unicode.py | |
parent | c194962019d1bc7322e20b82c33aa1bab3bc2a28 (diff) | |
download | sqlalchemy-17d3c8764e020379e54053bca0b0a2bc71d48aa0.tar.gz |
- 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
Diffstat (limited to 'test/sql/unicode.py')
-rw-r--r-- | test/sql/unicode.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/sql/unicode.py b/test/sql/unicode.py index 03673eb4d..9f352fd09 100644 --- a/test/sql/unicode.py +++ b/test/sql/unicode.py @@ -1,7 +1,7 @@ # coding: utf-8 """verrrrry basic unicode column name testing""" -import testbase +import testenv; testenv.configure_for_tests() from sqlalchemy import * from testlib import * from testlib.engines import utf8_engine @@ -61,13 +61,13 @@ class UnicodeSchemaTest(PersistTest): t3.delete().execute() t2.delete().execute() t1.delete().execute() - + @testing.unsupported('maxdb', 'oracle', 'sybase') def tearDownAll(self): global unicode_bind metadata.drop_all() del unicode_bind - + @testing.unsupported('maxdb', 'oracle', 'sybase') def test_insert(self): t1.insert().execute({u'méil':1, u'\u6e2c\u8a66':5}) @@ -80,7 +80,7 @@ class UnicodeSchemaTest(PersistTest): assert t1.select().execute().fetchall() == [(1, 5)] assert t2.select().execute().fetchall() == [(1, 1)] assert t3.select().execute().fetchall() == [(1, 5, 1, 1)] - + @testing.unsupported('maxdb', 'oracle', 'sybase') def test_reflect(self): t1.insert().execute({u'méil':2, u'\u6e2c\u8a66':7}) @@ -111,8 +111,8 @@ class UnicodeSchemaTest(PersistTest): [(2, 7, 2, 2), (1, 5, 1, 1)]) meta.drop_all() metadata.create_all() - + if __name__ == '__main__': - testbase.main() + testenv.main() |