summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-03-26 19:03:11 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-03-26 19:03:11 -0400
commit14a2fae2398fb05f7ced56cec25e6f98307356f4 (patch)
tree6e7fde84f805d08659a96638b13edb08e681b5e9 /test/dialect/test_postgresql.py
parentdfd2c0fb5e1780966d0d5dfdb3d783177640f78f (diff)
downloadsqlalchemy-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.py6
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),