diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-05-09 20:26:09 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-05-09 20:26:09 +0000 |
commit | e41c0f4107a132b2feac83ba07a25a336e7eae0b (patch) | |
tree | 09c785fd5ef9557c3fc926afd7e0a78702dd8023 /test/sql/unicode.py | |
parent | a2122a89f6d4f2d3ccc4ba7665cd588c2b0b93b0 (diff) | |
download | sqlalchemy-e41c0f4107a132b2feac83ba07a25a336e7eae0b.tar.gz |
Test suite modernization in progress. Big changes:
- @unsupported now only accepts a single target and demands a reason
for not running the test.
- @exclude also demands an exclusion reason
- Greatly expanded @testing.requires.<feature>, eliminating many
decorators in the suite and signficantly easing integration of
multi-driver support.
- New ORM test base class, and a featureful base for mapped tests
- Usage of 'global' for shared setup going away, * imports as well
Diffstat (limited to 'test/sql/unicode.py')
-rw-r--r-- | test/sql/unicode.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/sql/unicode.py b/test/sql/unicode.py index 9e3ea257e..c5002aaff 100644 --- a/test/sql/unicode.py +++ b/test/sql/unicode.py @@ -8,7 +8,8 @@ from testlib.engines import utf8_engine from sqlalchemy.sql import column class UnicodeSchemaTest(TestBase): - @testing.unsupported('maxdb', 'oracle', 'sybase') + __requires__ = ('unicode_ddl',) + def setUpAll(self): global unicode_bind, metadata, t1, t2, t3 @@ -55,20 +56,17 @@ class UnicodeSchemaTest(TestBase): ) metadata.create_all() - @testing.unsupported('maxdb', 'oracle', 'sybase') def tearDown(self): if metadata.tables: 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}) t2.insert().execute({'a':1, 'b':1}) @@ -81,7 +79,6 @@ class UnicodeSchemaTest(TestBase): 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}) t2.insert().execute({'a':2, 'b':2}) |