]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Introduce lambda combinations
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 5 Dec 2019 00:18:57 +0000 (19:18 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 5 Dec 2019 00:32:13 +0000 (19:32 -0500)
commit11ed5b100f158d9022abf7cd340c01fa80fd021b
tree99f9d420b913808b6ccc41bd6d79728f207f91d4
parent42d1f8b11d50436e9e7a9a8f6d51cbfc5d6dae59
Introduce lambda combinations

As the ORM's combinatoric tests mostly use entities and
table metadata that's defined in fixtures, we can't use
@testing.combinations directly as it takes place at the
module level.   Instead we use lambdas, but to reduce
verbosity we use a code replacement so that the namespace
of the lambda can be provided at runtime rather than
module import time.

Change-Id: Ia63a510f9c1d08b055eef62cf047f1f427f0450c
(cherry picked from commit 1ab483ac5481cb60e898f0bfdad54e5ca45bbb80)
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
lib/sqlalchemy/testing/util.py
test/orm/test_query.py