]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Support has been added for pytest to run tests. This runner
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Mar 2014 20:55:17 +0000 (15:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 3 Mar 2014 20:55:17 +0000 (15:55 -0500)
commitea05a2321819405020ead5184770d39a0b7948da
tree1f28366cba2c6c8d4614d0e91a404013137bcd37
parentbf89ca2e10ff1c38e76f78e2d11d7858a50df547
- Support has been added for pytest to run tests.   This runner
is currently being supported in addition to nose, and will likely
be preferred to nose going forward.   The nose plugin system used
by SQLAlchemy has been split out so that it works under pytest as
well.  There are no plans to drop support for nose at the moment
and we hope that the test suite itself can continue to remain as
agnostic of testing platform as possible.  See the file
README.unittests.rst for updated information on running tests
with pytest.

The test plugin system has also been enhanced to support running
tests against mutiple database URLs at once, by specifying the ``--db``
and/or ``--dburi`` flags multiple times.  This does not run the entire test
suite for each database, but instead allows test cases that are specific
to certain backends make use of that backend as the test is run.
When using pytest as the test runner, the system will also run
specific test suites multiple times, once for each database, particularly
those tests within the "dialect suite".   The plan is that the enhanced
system will also be used by Alembic, and allow Alembic to run
migration operation tests against multiple backends in one run, including
third-party backends not included within Alembic itself.
Third party dialects and extensions are also encouraged to standardize
on SQLAlchemy's test suite as a basis; see the file README.dialects.rst
for background on building out from SQLAlchemy's test platform.
47 files changed:
README.dialects.rst
README.unittests.rst
doc/build/changelog/changelog_09.rst
examples/versioned_history/test_versioning.py
lib/sqlalchemy/orm/loading.py
lib/sqlalchemy/sql/schema.py
lib/sqlalchemy/testing/__init__.py
lib/sqlalchemy/testing/assertions.py
lib/sqlalchemy/testing/config.py
lib/sqlalchemy/testing/engines.py
lib/sqlalchemy/testing/exclusions.py
lib/sqlalchemy/testing/fixtures.py
lib/sqlalchemy/testing/plugin/noseplugin.py
lib/sqlalchemy/testing/plugin/plugin_base.py [new file with mode: 0644]
lib/sqlalchemy/testing/plugin/pytestplugin.py [new file with mode: 0644]
lib/sqlalchemy/testing/requirements.py
lib/sqlalchemy/testing/schema.py
lib/sqlalchemy/testing/suite/test_ddl.py
lib/sqlalchemy/testing/suite/test_insert.py
lib/sqlalchemy/testing/suite/test_reflection.py
lib/sqlalchemy/testing/suite/test_results.py
lib/sqlalchemy/testing/suite/test_select.py
lib/sqlalchemy/testing/suite/test_sequence.py
lib/sqlalchemy/testing/suite/test_types.py
lib/sqlalchemy/testing/suite/test_update_delete.py
lib/sqlalchemy/util/langhelpers.py
setup.cfg
setup.py
sqla_nose.py
test/conftest.py [new file with mode: 0755]
test/dialect/mysql/test_compiler.py
test/dialect/mysql/test_types.py
test/dialect/postgresql/test_compiler.py
test/dialect/postgresql/test_types.py
test/engine/test_ddlevents.py
test/engine/test_reflection.py
test/ext/test_horizontal_shard.py
test/orm/test_events.py
test/orm/test_query.py
test/orm/test_unitofwork.py
test/profiles.txt
test/requirements.py
test/sql/test_functions.py
test/sql/test_metadata.py
test/sql/test_query.py
test/sql/test_types.py
test/sql/test_unicode.py