summaryrefslogtreecommitdiff
path: root/tests/test_postgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-07-11 19:07:14 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-07-11 19:07:14 -0400
commit949367b87972ad2fba7653e9bfd624b7a629c04e (patch)
tree183bf743c14a5c0989d1fef030ef123a34cf597c /tests/test_postgresql.py
parenta381c8fab4b8066ffc656da9bfe6bf802099d955 (diff)
downloadalembic-949367b87972ad2fba7653e9bfd624b7a629c04e.tar.gz
Added new kw argument to :meth:`.EnvironmentContext.configure`
``include_object``. This is a more flexible version of the ``include_symbol`` argument which allows filtering of columns as well as tables from the autogenerate process, and in the future will also work for types, constraints and other constructs. The fully constructed schema object is passed, including its name and type as well as a flag indicating if the object is from the local application metadata or is reflected.
Diffstat (limited to 'tests/test_postgresql.py')
-rw-r--r--tests/test_postgresql.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py
index 047ac92..9c53035 100644
--- a/tests/test_postgresql.py
+++ b/tests/test_postgresql.py
@@ -197,9 +197,10 @@ class PostgresqlDefaultCompareTest(TestCase):
cols = insp.get_columns(t1.name)
ctx = self.autogen_context['context']
return ctx.impl.compare_server_default(
- cols[0],
+ None,
col,
- rendered)
+ rendered,
+ cols[0]['default'])
def test_compare_current_timestamp(self):
self._compare_default_roundtrip(