]> 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:12:59 +0000 (11:12 -0400)
commit8725d89abaf1a6ce870e71fbf1a4962dc4899204
treed9a52a8e960a3ec087a5bda1cf03b498b945d162
parentf39cf13680a0ee5b190d498d29ea31c76f546dfb
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
48 files changed:
lib/sqlalchemy/testing/fixtures.py
lib/sqlalchemy/testing/suite/test_cte.py
lib/sqlalchemy/testing/suite/test_deprecations.py
lib/sqlalchemy/testing/suite/test_results.py
lib/sqlalchemy/testing/suite/test_rowcount.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_deprecations.py
test/sql/test_resultset.py