summaryrefslogtreecommitdiff
path: root/sqla_nose.py
Commit message (Collapse)AuthorAgeFilesLines
* Remove Nose supportParth Shandilya2019-02-021-36/+0
| | | | | | | | | | | | | | The test system has removed support for Nose, which is unmaintained for several years and is producing warnings under Python 3. The test suite is currently standardized on Pytest. Pull request courtesy Parth Shandilya. Fixes: #4460 Closes: #4476 Pull-request: https://github.com/sqlalchemy/sqlalchemy/pull/4476 Pull-request-sha: e857af9c7d07355e52841149ee2e5d4448409e1e Change-Id: I76516fae1cf0eb58f2e9fc9f692e591e0fcf39a4
* Post black reformattingMike Bayer2019-01-061-2/+5
| | | | | | | | | | | | | Applied on top of a pure run of black -l 79 in I7eda77fed3d8e73df84b3651fd6cfcfe858d4dc9, this set of changes resolves all remaining flake8 conditions for those codes we have enabled in setup.cfg. Included are resolutions for all remaining flake8 issues including shadowed builtins, long lines, import order, unused imports, duplicate imports, and docstring issues. Change-Id: I4f72d3ba1380dd601610ff80b8fb06a2aff8b0fe
* - Fixed the pathing used when tests run; for sqla_nose.py and py.test,Mike Bayer2015-04-041-4/+5
| | | | | | | | the "./lib" prefix is again inserted at the head of sys.path but only if sys.flags.no_user_site isn't set; this makes it act just like the way Python puts "." in the current path by default. For tox, we are setting the PYTHONNOUSERSITE flag now. fixes #3356
* - we really don't want to force lib here, but we do needMike Bayer2015-03-091-2/+2
| | | | | it for the plain "pytest" case, so do an append instead of an insert - add a new tox file to do a full regen of callcounts
* - remove some crufty old testing optionsMike Bayer2014-09-141-13/+16
| | | | | | | | - reestablish the "bootstrap" system of loading the test runners in testing/plugin; using the updated approach we just came up with for alembic. Coverage should be fixed now when running either py.test or nose. fixes #3196 - upgrade tox.ini and start using a .coveragerc file
* fixed style to conform to PEP8Brian Jarrett2014-07-101-1/+1
|
* use importlib.machinery to load modules instead of imp under Python 3.3 and ↵Matt Chisholm2014-04-141-2/+6
| | | | | | greater part of #2830
* - finding myself still using nose for short runs as it starts up faster,Mike Bayer2014-03-051-4/+0
| | | | let's stay on the fence.
* - Support has been added for pytest to run tests. This runnerMike Bayer2014-03-031-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* fix the path hereMike Bayer2012-09-301-5/+4
|
* consolidate config into noseplugin, remove the dupe, load noseplugin using ↵Mike Bayer2012-09-301-5/+8
| | | | imp.load_source(), see if that works
* - copy the plugin into test so that it can be loaded w/o breaking coverage.Mike Bayer2012-09-291-1/+3
| | | | this is a really unfortunate hack right now.
* trying different approaches to test layout. in this one, the testing modulesMike Bayer2012-09-271-2/+3
| | | | | | | become an externally usable package but still remains within the main sqlalchemy parent package. in this system, we use kind of an ugly hack to get the noseplugin imported outside of the "sqlalchemy" package, while still making it available within sqlalchemy for usage by third party libraries.
* - set sqla_nose as the setup.py test runner - works !Mike Bayer2010-11-161-2/+1
|
* - move sqlalchemy.test to test.libMike Bayer2010-11-151-2/+2
|
* first step of [ticket:1949], remove the setuptools aspectMike Bayer2010-11-151-6/+5
| | | | of the plugin, move it to test/bootstrap
* - nose3 seems to support "addplugins" nowMike Bayer2010-11-131-10/+1
| | | | - add a note about sqla_nose.py
* commentMike Bayer2010-11-131-3/+3
|
* Update for new nose plugin location.Jason Kirtland2010-10-191-6/+7
|
* Make sqla_nose.py "just work" for running tests on checkouts without a ↵Jason Kirtland2010-04-231-2/+9
| | | | setup.py develop step or PYTHONPATH.
* merge 0.6 series to trunk.Mike Bayer2009-08-061-0/+22