diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-26 19:03:11 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-26 19:03:11 -0400 |
commit | 14a2fae2398fb05f7ced56cec25e6f98307356f4 (patch) | |
tree | 6e7fde84f805d08659a96638b13edb08e681b5e9 /test/dialect/test_postgresql.py | |
parent | dfd2c0fb5e1780966d0d5dfdb3d783177640f78f (diff) | |
download | sqlalchemy-14a2fae2398fb05f7ced56cec25e6f98307356f4.tar.gz |
- remove @testing.resolve_artifact_names, replace with direct attribute
access to the cls/self.tables/classes registries
- express orm/_base.py ORMTest in terms of engine/_base.py TablesTest,
factor out common steps into TablesTest, remove AltEngineTest as a
separate class. will further consolidate these base classes
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r-- | test/dialect/test_postgresql.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 74f6c0e55..60a10b4b4 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -242,8 +242,9 @@ class FloatCoercionTest(TablesTest, AssertsExecutionResults): ) @classmethod - @testing.resolve_artifact_names def insert_data(cls): + data_table = cls.tables.data_table + data_table.insert().execute( {'data':3}, {'data':5}, @@ -257,8 +258,9 @@ class FloatCoercionTest(TablesTest, AssertsExecutionResults): {'data':9}, ) - @testing.resolve_artifact_names def test_float_coercion(self): + data_table = self.tables.data_table + for type_, result in [ (Numeric, decimal.Decimal('140.381230939')), (Float, 140.381230939), |