diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-06 10:43:19 -0500 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2021-01-15 13:04:58 -0500 |
| commit | ebbbac0a76b3327a829864afb26ee1b7ff1dc780 (patch) | |
| tree | b086b06760255bc0bb76e51624a5e3772bc4cc3d /test/sql/test_functions.py | |
| parent | 6be06d85e598e4fda6f3d35084e1c5cccb30cee5 (diff) | |
| download | sqlalchemy-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_functions.py')
| -rw-r--r-- | test/sql/test_functions.py | 4 |
1 files changed, 2 insertions, 2 deletions
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(), |
