From ebbbac0a76b3327a829864afb26ee1b7ff1dc780 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 6 Jan 2021 10:43:19 -0500 Subject: 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 --- test/sql/test_functions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/sql/test_functions.py') diff --git a/test/sql/test_functions.py b/test/sql/test_functions.py index 32ea642d7..50f50f0f0 100644 --- a/test/sql/test_functions.py +++ b/test/sql/test_functions.py @@ -1024,7 +1024,7 @@ class ExecuteTest(fixtures.TestBase): connection.execute(t2.insert().values(value=func.length("one"))) connection.execute( t2.insert().values(value=func.length("asfda") + -19), - stuff="hi", + dict(stuff="hi"), ) res = sorted(connection.execute(select(t2.c.value, t2.c.stuff))) @@ -1032,7 +1032,7 @@ class ExecuteTest(fixtures.TestBase): connection.execute( t2.update().values(value=func.length("asdsafasd")), - stuff="some stuff", + dict(stuff="some stuff"), ) eq_( connection.execute(select(t2.c.value, t2.c.stuff)).fetchall(), -- cgit v1.2.1