diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-08-17 17:24:27 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-09-16 12:31:05 -0400 |
commit | 7e864fc7b1b950760cbf02e6dcd5aa5aac267400 (patch) | |
tree | 2382b016c3eb82ae463719cc948f45ccd2a226a2 /lib/sqlalchemy/testing/suite/test_insert.py | |
parent | 8ebc8184392e20727748cd1405245e527f17e111 (diff) | |
download | sqlalchemy-7e864fc7b1b950760cbf02e6dcd5aa5aac267400.tar.gz |
Create a framework to allow all SQLALCHEMY_WARN_20 to pass
As the test suite has widespread use of many patterns
that are deprecated, enable SQLALCHEMY_WARN_20 globally
for the test suite but then break the warnings filter
out into a whole list of all the individual warnings
we are looking for. this way individual changesets
can target a specific class of warning, as many of these
warnings will indivdidually affect dozens of files
and potentially hundreds of lines of code.
Many warnings are also resolved here as this
patch started out that way. From this point
forward there should be changesets that target a
subset of the warnings at a time.
For expediency, updates some migration 2.0 docs
for ORM as well.
Change-Id: I98b8defdf7c37b818b3824d02f7668e3f5f31c94
Diffstat (limited to 'lib/sqlalchemy/testing/suite/test_insert.py')
-rw-r--r-- | lib/sqlalchemy/testing/suite/test_insert.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/suite/test_insert.py b/lib/sqlalchemy/testing/suite/test_insert.py index 74347cc77..7a7eac02f 100644 --- a/lib/sqlalchemy/testing/suite/test_insert.py +++ b/lib/sqlalchemy/testing/suite/test_insert.py @@ -225,7 +225,9 @@ class InsertBehaviorTest(fixtures.TablesTest): ) connection.execute( - table.insert(inline=True).from_select( + table.insert() + .inline() + .from_select( ("id", "data"), select(table.c.id + 5, table.c.data).where( table.c.data.in_(["data2", "data3"]) @@ -253,7 +255,9 @@ class InsertBehaviorTest(fixtures.TablesTest): ) connection.execute( - table.insert(inline=True).from_select( + table.insert() + .inline() + .from_select( ("id", "data"), select(table.c.id + 5, table.c.data).where( table.c.data.in_(["data2", "data3"]) |