]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Pass connection to TablesTest.insert_data()
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 14 Apr 2020 19:30:28 +0000 (15:30 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 15 Apr 2020 15:16:12 +0000 (11:16 -0400)
commit3294998c6458fce28526fef99386e395bbdc745a
tree949036a2c56e12c3359c5f0d6fdabe4f35e8f3b5
parent8b8c82cdbf85808d87f0e4616203a6dabc623ca6
Pass connection to TablesTest.insert_data()

towards the goal of reducing verbosity and repetition
in test fixtures as well as that we are moving to
connection only for execution, move the insert_data()
classmethod to accept a connection and adjust all
fixtures to use it.

Change-Id: I3bf534acca0d5f4cda1d4da8ae91f1155b829b09
(cherry picked from commit 5c010c097352c783729e210018b95130ef94a926)
45 files changed:
lib/sqlalchemy/testing/fixtures.py
lib/sqlalchemy/testing/suite/test_cte.py
lib/sqlalchemy/testing/suite/test_results.py
lib/sqlalchemy/testing/suite/test_select.py
lib/sqlalchemy/testing/suite/test_update_delete.py
test/aaa_profiling/test_orm.py
test/dialect/mysql/test_for_update.py
test/dialect/mysql/test_query.py
test/dialect/oracle/test_types.py
test/dialect/postgresql/test_query.py
test/dialect/postgresql/test_types.py
test/ext/declarative/test_basic.py
test/ext/test_associationproxy.py
test/ext/test_horizontal_shard.py
test/ext/test_hybrid.py
test/ext/test_serializer.py
test/orm/inheritance/_poly_fixtures.py
test/orm/inheritance/test_assorted_poly.py
test/orm/inheritance/test_basic.py
test/orm/inheritance/test_concrete.py
test/orm/inheritance/test_poly_loading.py
test/orm/inheritance/test_poly_persistence.py
test/orm/inheritance/test_polymorphic_rel.py
test/orm/inheritance/test_relationship.py
test/orm/inheritance/test_single.py
test/orm/test_ac_relationships.py
test/orm/test_assorted_eager.py
test/orm/test_bundle.py
test/orm/test_cascade.py
test/orm/test_deferred.py
test/orm/test_eager_relations.py
test/orm/test_events.py
test/orm/test_expire.py
test/orm/test_froms.py
test/orm/test_joins.py
test/orm/test_lazy_relations.py
test/orm/test_mapper.py
test/orm/test_merge.py
test/orm/test_of_type.py
test/orm/test_relationships.py
test/orm/test_selectin_relations.py
test/orm/test_subquery_relations.py
test/orm/test_update_delete.py
test/sql/test_defaults.py
test/sql/test_resultset.py