]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- nose3 seems to support "addplugins" now
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 13 Nov 2010 16:26:05 +0000 (11:26 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 13 Nov 2010 16:26:05 +0000 (11:26 -0500)
- add a note about sqla_nose.py

README.unittests
sqla_nose.py

index ca76997435aea62a8de7ccb21fd63aa3616dc7bc..6b2320907def973832b7f2b31264a5cc97da8f7b 100644 (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
index ab329fd3fc414ec95d725121193a51fc2fea4783..302fb5b08712d7d74366e0eb55c0bee126227f86 100755 (executable)
@@ -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()])