]> 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:49:03 +0000 (20:49 -0400)
commited553fffd65a063d6dbdb3770d1fa0124bd55e23
tree59ab8a457b3ed82cb7647b7da1b94b4ce2a815e1
parent528782d1c356445f17cea857ef0974e074c51d60
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
12 files changed:
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/config.py
lib/sqlalchemy/testing/plugin/plugin_base.py
lib/sqlalchemy/testing/plugin/pytestplugin.py
test/aaa_profiling/test_memusage.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