diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-07-16 19:00:14 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-07-16 19:00:14 -0400 |
commit | ceeac2a45563346b2b7741fb85d3c65828e52904 (patch) | |
tree | 9a437d10d61c957bc0cf7ebd718ec519991733b3 /tests/test_postgresql.py | |
parent | 1e2848d6744188f9915ecd17028835e9e1ae86b1 (diff) | |
download | alembic-ticket_306.tar.gz |
- build out custom autogenerate compare hooksticket_306
- new documentation for autogenerate customization
Diffstat (limited to 'tests/test_postgresql.py')
-rw-r--r-- | tests/test_postgresql.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py index 7fb514f..576d957 100644 --- a/tests/test_postgresql.py +++ b/tests/test_postgresql.py @@ -203,8 +203,10 @@ class PostgresqlDefaultCompareTest(TestBase): insp_col = Column("somecol", cols[0]['type'], server_default=text(cols[0]['default'])) op = ops.AlterColumnOp("test", "somecol") - _compare_server_default(None, "test", "somecol", insp_col, - t2.c.somecol, op, self.autogen_context) + _compare_server_default( + self.autogen_context, op, + None, "test", "somecol", insp_col, t2.c.somecol) + diffs = op.to_diff_tuple() eq_(bool(diffs), diff_expected) |