diff options
author | CaselIT <cfederico87@gmail.com> | 2020-03-17 23:03:32 +0100 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-03-18 16:45:29 -0400 |
commit | 4f351a6ca8a6b5fe6718203226805f4e1a02a2db (patch) | |
tree | 311a185e5cda1a41dcbb02f4a81ed4ed9c82ad9c /tests/test_batch.py | |
parent | 0753306f9c96b23913f24041b3bf2f74d5dc74b1 (diff) | |
download | alembic-4f351a6ca8a6b5fe6718203226805f4e1a02a2db.tar.gz |
Support sqlalchemy 1.4 exec_driver_sql, text() for strings
Adjusted tests so that only connection-explicit execution
is used, along with the use of text() for string invocation.
Tests that are testing explicitly for deprecation warnings
will bypass SQLAlchemy warnings. Added the RemovedIn20 warning
as an error raise for these two specific deprecation cases.
Co-authored-by: Mike Bayer <mike_mp@zzzcomputing.com>
Change-Id: I4f6b83366329aa95204522c9e99129021d1899fc
Diffstat (limited to 'tests/test_batch.py')
-rw-r--r-- | tests/test_batch.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/test_batch.py b/tests/test_batch.py index 5b4d3ec..4c32518 100644 --- a/tests/test_batch.py +++ b/tests/test_batch.py @@ -1334,7 +1334,9 @@ class BatchRoundTripTest(TestBase): eq_( [ dict(row) - for row in self.conn.execute("select * from %s" % tablename) + for row in self.conn.execute( + text("select * from %s" % tablename) + ) ], data, ) |