From ceeac2a45563346b2b7741fb85d3c65828e52904 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 16 Jul 2015 19:00:14 -0400 Subject: - build out custom autogenerate compare hooks - new documentation for autogenerate customization --- tests/test_postgresql.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/test_postgresql.py') 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) -- cgit v1.2.1