https://t.me/AnonymousX5
Server : Apache
System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64
User : njnconst ( 1116)
PHP Version : 8.4.18
Disable Function : NONE
Directory :  /proc/self/root/proc/self/root/lib64/python2.7/site-packages/django/utils/unittest/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/proc/self/root/lib64/python2.7/site-packages/django/utils/unittest/main.pyc
�
r�\c@s�dZddlZddlZddlZddlmZmZyddlmZWne	k
rmdZnXeZdZ
dZdZdZd	Zd
efd��YZeZd�ZdS(
sUnittest main programi����N(tloadertrunner(tinstallHandlers)  -f, --failfast   Stop on first failure
s7  -c, --catch      Catch control-C and display results
s=  -b, --buffer     Buffer stdout and stderr during test runs
sUsage: %(progName)s [options] [tests]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output
%(failfast)s%(catchbreak)s%(buffer)s
Examples:
  %(progName)s test_module                       - run tests from test_module
  %(progName)s test_module.TestClass             - run tests from
                                                   test_module.TestClass
  %(progName)s test_module.TestClass.test_method - run specified test method

[tests] can be a list of any number of test modules, classes and test
methods.

Alternative Usage: %(progName)s discover [options]

Options:
  -v, --verbose    Verbose output
%(failfast)s%(catchbreak)s%(buffer)s  -s directory     Directory to start discovery ('.' default)
  -p pattern       Pattern to match test files ('test*.py' default)
  -t directory     Top level directory of project (default to
                   start directory)

For test discovery all test modules must be importable from the top
level directory of the project.
s1Usage: %(progName)s [options] [test] [...]

Options:
  -h, --help       Show this message
  -v, --verbose    Verbose output
  -q, --quiet      Minimal output
%(failfast)s%(catchbreak)s%(buffer)s
Examples:
  %(progName)s                               - run default set of tests
  %(progName)s MyTestSuite                   - run suite 'MyTestSuite'
  %(progName)s MyTestCase.testSomething      - run MyTestCase.testSomething
  %(progName)s MyTestCase                    - run all 'test*' test methods
                                               in MyTestCase
tTestProgramcBs�eZdZeZd	ZZZZ	dd	d	d	e
jedd	d	d	d�
Z
d	d�Zd�Zd�Ze
jd�Zd�ZRS(
sA command-line program that runs a set of tests; this is primarily
       for making test modules conveniently executable.
    t__main__icCs�t|t�rTt|�|_x<|jd�dD]}t|j|�|_q2Wn	||_|dkrutj}n||_	||_
||_|	|_|
|_
||_||_||_tjj|d�|_|j|�|j�dS(Nt.ii(t
isinstancet
basestringt
__import__tmoduletsplittgetattrtNonetsystargvtexitt	verbositytfailfastt
catchbreaktbuffertdefaultTestt
testRunnert
testLoadertostpathtbasenametprogNamet	parseArgstrunTests(tselfR	RRRRRRRRRtpart((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyt__init__Ks$									
cCs�|r|GHni|jd6dd6dd6dd6}|jtkrOt|d<n|jtkrwtdk	rwt|d<n|jtkr�t	|d<n|j
|GHtjd�dS(NRtRRRi(
RRtFalsetFAILFASTRRRt
CATCHBREAKRtBUFFEROUTPUTtUSAGER
R(Rtmsgtusage((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyt	usageExitds



c	Cst|�dkr=|dj�dkr=|j|d�dSddl}ddddd	d
g}y�|j|dd|�\}}x�|D]�\}}|dkr�|j�n|dkr�d|_n|dkr�d|_n|dkr	|jdkr	t|_q	n|dkr?|j	dkr?t
dk	r?t|_	q?n|d kr�|jdkrit|_qiq�q�Wt|�dkr�|jdkr�d|_
nEt|�dkr�||_
tdkr�d|_q�n|jf|_
|j�Wn#|jk
r}|j|�nXdS(!Nitdiscoverii����thelptverbosetquietRtcatchRthHvqfcbs-hs-Hs--helps-qs--quietis-vs	--verboses-fs
--failfasts-cs--catchs-bs--bufferR(s-hs-Hs--help(s-qs--quiet(s-vs	--verbose(s-fs
--failfast(s-cs--catch(s-bs--buffer(tlentlowert
_do_discoverytgetoptR(RRRtTrueRRRRt	testNamest__name__R	tcreateTeststerror(	RRR2t	long_optstoptionstargstopttvalueR&((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyRrsB(
!	cCsL|jdkr*|jj|j�|_n|jj|j|j�|_dS(N(R4RRtloadTestsFromModuleR	ttesttloadTestsFromNames(R((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyR6�sc
Cs�d|j|_ddl}|j�}|j|_|jdddddtdd	d
d�|jtkr�|jdd
dddtddd
d�n|jtkr�tdk	r�|jdddddtddd
d�n|j
tkr|jdddddtddd
d�n|jdddddddd�|jdddddd dd!�|jd"d#dd$dddd%�|j|�\}}t|�d&kr�|j
�nx-td(|�D]\}}t|||�q�W|jdkr�|j|_n|jdkr(tdk	r(|j|_n|j
dkrF|j
|_
n|jr[d'|_n|j}	|j}
|j}|�}|j|	|
|�|_dS()Ns%s discoveri����s-vs	--verbosetdestR+tdefaultR*sVerbose outputtactiont
store_trues-fs
--failfastRsStop on first fail or errors-cs--catchRs'Catch ctrl-C and display results so fars-bs--bufferRs%Buffer stdout and stderr during testss-ss--start-directorytstartRs*Directory to start discovery ('.' default)s-ps	--patterntpatternstest*.pys+Pattern to match tests ('test*.py' default)s-ts--top-level-directoryttops<Top level directory of project (defaults to start directory)ii(sstartspatternstop(RtoptparsetOptionParsertprogt
add_optionR!RRRRRt
parse_argsR/R(tziptsetattrR+RRDRERFR)R>(
RRtLoaderRGtparserR9R:tnameR<t	start_dirREt
top_level_dirR((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyR1�sT




					cCs�|jrt�n|jdkr1tj|_nt|jttj	f�r�y+|jd|j
d|jd|j�}Wq�t
k
r�|j�}q�Xn	|j}|j|j�|_|jr�tj|jj��ndS(NRRR(RRRRRtTextTestRunnerRttypettypest	ClassTypeRRRt	TypeErrortrunR>tresultRR
t
wasSuccessful(RR((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyR�s	
	
		N(R5t
__module__t__doc__tUSAGE_FROM_MODULER%RRRRRRtdefaultTestLoaderR3RR(RR6t
TestLoaderR1R(((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyRBs		*	5cCstt_tdd�dS(NR	(t
USAGE_AS_MAINRR%tmainR(((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pytmain_�s	(R\R
RRUtdjango.utils.unittestRRtdjango.utils.unittest.signalsRtImportErrorRR3t
__unittestR"R#R$R`R]tobjectRRaRb(((s</tmp/pip-install-XxeQeY/django/django/utils/unittest/main.pyt<module>s"

�

https://t.me/AnonymousX5 - 2025