$26 GRAYBYTE WORDPRESS FILE MANAGER $17

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/alt/python37/lib/python3.7/site-packages/nose/plugins/

HOME
Current File : /opt/alt/python37/lib/python3.7/site-packages/nose/plugins//allmodules.py
"""Use 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.

"""

import os
from nose.plugins.base import Plugin

class AllModules(Plugin):
    """Collect tests from all python modules.
    """
    def options(self, parser, env):
        """Register commandline options.
        """
        env_opt = 'NOSE_ALL_MODULES'
        parser.add_option('--all-modules',
                          action="store_true",
                          dest=self.enableOpt,
                          default=env.get(env_opt),
                          help="Enable plugin %s: %s [%s]" %
                          (self.__class__.__name__, self.help(), env_opt))

    def wantFile(self, file):
        """Override to return True for all files ending with .py"""
        # always want .py files
        if file.endswith('.py'):
            return True

    def wantModule(self, module):
        """Override return True for all modules"""
        return True

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
31 Aug 2024 6.49 AM
root / 996
0755
__pycache__
--
31 Aug 2024 6.49 AM
root / 996
0755
__init__.py
6.144 KB
6 Apr 2013 5.25 AM
root / 996
0644
allmodules.py
1.68 KB
29 Sep 2012 3.18 PM
root / 996
0644
attrib.py
9.439 KB
14 Nov 2023 10.11 PM
root / 996
0644
base.py
25.447 KB
14 Nov 2023 10.11 PM
root / 996
0644
builtin.py
0.997 KB
3 Oct 2012 2.19 AM
root / 996
0644
capture.py
3.285 KB
14 Nov 2023 10.11 PM
root / 996
0644
collect.py
3.04 KB
29 Sep 2012 3.18 PM
root / 996
0644
cover.py
11.403 KB
14 Nov 2023 10.11 PM
root / 996
0644
debug.py
2.219 KB
19 Apr 2014 8.48 PM
root / 996
0644
deprecated.py
1.515 KB
19 Apr 2014 8.48 PM
root / 996
0644
doctests.py
17.068 KB
14 Nov 2023 10.11 PM
root / 996
0644
errorclass.py
7.104 KB
14 Nov 2023 10.11 PM
root / 996
0644
failuredetail.py
1.597 KB
4 Apr 2015 3.52 PM
root / 996
0644
isolate.py
3.668 KB
14 Nov 2023 10.11 PM
root / 996
0644
logcapture.py
9.139 KB
14 Nov 2023 10.11 PM
root / 996
0644
manager.py
15.212 KB
14 Nov 2023 10.11 PM
root / 996
0644
multiprocess.py
34.459 KB
14 Nov 2023 10.11 PM
root / 996
0644
plugintest.py
13.216 KB
14 Nov 2023 10.11 PM
root / 996
0644
prof.py
5.231 KB
29 Sep 2012 3.18 PM
root / 996
0644
skip.py
2.092 KB
4 Apr 2015 3.52 PM
root / 996
0644
testid.py
9.685 KB
14 Nov 2023 10.11 PM
root / 996
0644
xunit.py
11.372 KB
14 Nov 2023 10.11 PM
root / 996
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF