diff options
author | Mike Waites <mikey.waites@gmail.com> | 2018-08-31 19:56:36 +0100 |
---|---|---|
committer | mike bayer <mike_mp@zzzcomputing.com> | 2019-01-10 02:09:03 +0000 |
commit | ec8db7d875f486cde2d02942bd8409abf37e3704 (patch) | |
tree | 3760cd8551f84dcd91a04cf4b4b60c589b7e2ad0 /tests/test_batch.py | |
parent | 1cf6fc014570cf0bdc7ea2a7d5f36f2dda5f61b7 (diff) | |
download | alembic-ec8db7d875f486cde2d02942bd8409abf37e3704.tar.gz |
Implemented support for Table and Column Comments
Added Table and Column level comments for supported backends.
`create_table`, `add_column` and `alter_column` now optionally
take `comment="X"` kwarg. Support for autogenerate for Table
and Column objects has also been added
Fixes: #422
Change-Id: I1fd37bb7fe3d167baf7b1e7bf7ff5bfd48e7cf54
Diffstat (limited to 'tests/test_batch.py')
-rw-r--r-- | tests/test_batch.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_batch.py b/tests/test_batch.py index 31e23c5..aa99853 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -695,9 +695,9 @@ class BatchAPITest(TestBase): with self._fixture() as batch: batch.add_column(column) - eq_( - batch.impl.operations.impl.mock_calls, - [mock.call.add_column("tname", column, schema=None)], + assert ( + mock.call.add_column("tname", column, schema=None) + in batch.impl.operations.impl.mock_calls ) def test_create_fk(self): |