]> 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:18:57 +0000 (19:18 -0500)
commit1ab483ac5481cb60e898f0bfdad54e5ca45bbb80
treeda401d91f98b9d59035c27c0f056bf9bd83ce0a5
parent380f4389922004589bfa7cb4f9b8c8208aa68659
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
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
lib/sqlalchemy/testing/util.py
test/orm/test_query.py