summaryrefslogtreecommitdiff
path: root/test/sql/test_insert_exec.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-01-06 10:43:19 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2021-01-15 13:04:58 -0500
commitebbbac0a76b3327a829864afb26ee1b7ff1dc780 (patch)
treeb086b06760255bc0bb76e51624a5e3772bc4cc3d /test/sql/test_insert_exec.py
parent6be06d85e598e4fda6f3d35084e1c5cccb30cee5 (diff)
downloadsqlalchemy-ebbbac0a76b3327a829864afb26ee1b7ff1dc780.tar.gz
update execute() arg formats in modules and tests
continuing with producing a SQLAlchemy 1.4.0b2 that internally does not emit any of its own 2.0 deprecation warnings, migrate the *args and **kwargs passed to execute() methods that now must be a single list or dictionary. Alembic 1.5 is again waiting on this internal consistency to be present so that it can pass all tests with no 2.0 deprecation warnings. Change-Id: If6b792e57c8c5dff205419644ab68e631575a2fa
Diffstat (limited to 'test/sql/test_insert_exec.py')
-rw-r--r--test/sql/test_insert_exec.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/test/sql/test_insert_exec.py b/test/sql/test_insert_exec.py
index 198ff48c0..ba763772c 100644
--- a/test/sql/test_insert_exec.py
+++ b/test/sql/test_insert_exec.py
@@ -82,9 +82,11 @@ class InsertExecTest(fixtures.TablesTest):
# a length check on all subsequent parameters.
connection.execute(
users.insert(),
- {"user_id": 7},
- {"user_id": 8, "user_name": "ed"},
- {"user_id": 9},
+ [
+ {"user_id": 7},
+ {"user_id": 8, "user_name": "ed"},
+ {"user_id": 9},
+ ],
)
def _test_lastrow_accessor(self, table_, values, assertvalues):
@@ -107,7 +109,7 @@ class InsertExecTest(fixtures.TablesTest):
is_(bool(comp.returning), True)
with engine.begin() as connection:
- result = connection.execute(table_.insert(), **values)
+ result = connection.execute(table_.insert(), values)
ret = values.copy()
for col, id_ in zip(