]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Implement facade for pytest parametrize, fixtures, classlevel
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 17 Oct 2019 17:09:24 +0000 (13:09 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 21 Oct 2019 00:47:36 +0000 (20:47 -0400)
commit072ceddbec27ec6e744b80f44ad0aafb887f8915
tree514cc3939178f9110a4927df2c35f396585df201
parentc13d9fcff4b7f302b038a8729485e21d8191ae2b
Implement facade for pytest parametrize, fixtures, classlevel

Add factilities to implement pytest.mark.parametrize and
pytest.fixtures patterns, which largely resemble things we are
already doing.

Ensure a facade is used, so that the test suite remains independent
of py.test, but also tailors the functions to the more limited
scope in which we are using them.

Additionally, create a class-based version that works from the
same facade.

Several old polymorphic tests as well as two of the sql test
are refactored to use the new features.

Change-Id: I6ef8af1dafff92534313016944d447f9439856cf
References: #4896
(cherry picked from commit 696ef9421da763a0ffcfd98083c0af78db3ea756)
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/config.py
lib/sqlalchemy/testing/plugin/plugin_base.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
test/orm/inheritance/test_abc_polymorphic.py
test/orm/inheritance/test_assorted_poly.py
test/orm/inheritance/test_magazine.py
test/orm/inheritance/test_poly_persistence.py
test/orm/test_descriptor.py
test/sql/test_operators.py
test/sql/test_types.py