- nose3 seems to support "addplugins" now

- add a note about sqla_nose.py
This commit is contained in:
Mike Bayer 2010-11-13 11:26:05 -05:00
parent 83b534bc95
commit 4c61875aa1
2 changed files with 11 additions and 10 deletions

View File

@ -68,6 +68,16 @@ intersesting:
$ nosetests -v
ALTERNATE TEST RUNNER
---------------------
The script "sqla_nose.py" is a front-end to Nose which manually associates
the SQLAlchemy testing plugin with Nose at runtime. This script can run the
tests without any reliance upon setuptools. In 0.7 we'll be removing the
Nose plugin from setup, so this will be the way going forward to run tests:
$ python sqla_nose.py -v
RUNNING INDIVIDUAL TESTS
-------------------------
Any directory of test modules can be run at once by specifying the directory

View File

@ -5,7 +5,6 @@ nose runner script.
This script is a front-end to "nosetests" which doesn't
require that SQLA's testing plugin be installed via setuptools.
"""
import sys
@ -18,13 +17,5 @@ except ImportError:
import nose
if __name__ == '__main__':
py3k = getattr(sys, 'py3kwarning', False) or sys.version_info >= (3, 0)
if py3k:
# this version breaks verbose output,
# but is the only API that nose3 currently supports
nose.main(plugins=[NoseSQLAlchemy()])
else:
# this is the "correct" API
nose.main(addplugins=[NoseSQLAlchemy()])
nose.main(addplugins=[NoseSQLAlchemy()])