Plan 9 from Bell Labs’s /usr/web/sources/contrib/jas/root/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pyc

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


�9�c@s<dZddlZddlmZdefd��YZdS(sGUse the AllModules plugin by passing ``--all-modules`` or setting the
NOSE_ALL_MODULES environment variable to enable collection and execution of
tests in all python modules. Normal nose behavior is to look for tests only in
modules that match testMatch.

More information: :doc:`../doc_tests/test_allmodules/test_allmodules`

.. warning ::

   This plugin can have surprising interactions with plugins that load tests
   from what nose normally considers non-test modules, such as
   the :doc:`doctest plugin <doctests>`. This is because any given
   object in a module can't be loaded both by a plugin and the normal nose
   :class:`test loader <nose.loader.TestLoader>`. Also, if you have functions
   or classes in non-test modules that look like tests but aren't, you will
   likely see errors as nose attempts to run them as tests.

i�N(tPlugint
AllModulescBs)eZdZd�Zd�Zd�ZRS(s+Collect tests from all python modules.
    c
CsTd}|jdddd|jd|j|�dd|jj|j�|f�d	S(
s&Register commandline options.
        tNOSE_ALL_MODULESs
--all-modulestactiont
store_truetdesttdefaultthelpsEnable plugin %s: %s [%s]N(t
add_optiont	enableOpttgett	__class__t__name__R(tselftparsertenvtenv_opt((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pytoptionss	cCs|jd�rtSdS(s5Override to return True for all files ending with .pys.pyN(tendswithtTrue(R
tfile((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pytwantFile%scCstS(s$Override return True for all modules(R(R
tmodule((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pyt
wantModule+s(Rt
__module__t__doc__RRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pyRs		(Rtostnose.plugins.baseRR(((s;/sys/lib/python2.7/site-packages/nose/plugins/allmodules.pyt<module>s

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.