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 :  /lib64/python2.7/site-packages/django/core/management/commands/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //lib64/python2.7/site-packages/django/core/management/commands/test.pyc
�
r�\c@s�ddlZddlZddlZddlmZmZddlmZddlm	Z	ddl
mZde	fd��YZdS(i����N(tmake_optiontOptionParser(tsettings(tBaseCommand(t
get_runnertCommandcBs�eZejeddddddedd�eddd	dd
dedd�eddd
dddd�eddd
dddddd�fZdZdZ	eZ
d�Zd�Zd�Z
d�Zd�ZRS(s	--noinputtactiontstore_falsetdesttinteractivetdefaultthelps:Tells Django to NOT prompt the user for input of any kind.s
--failfastt
store_truetfailfastsDTells Django to stop running the test suite after first failed test.s--testrunnertstoret
testrunnershTells Django to use specified test runner class instead of the one specified by the TEST_RUNNER setting.s--liveservert
liveservers�Overrides the default address where the live server (used with LiveServerTestCase) is expected to run from. The default value is localhost:8081.sIDiscover and run tests in the specified modules or the current directory.s[[path.to.modulename|path.to.modulename.TestCase|path.to.modulename.TestCase.test_method]...cCs d|_tt|�j�dS(N(tNonettest_runnertsuperRt__init__(tself((sF/tmp/pip-install-XxeQeY/django/django/core/management/commands/test.pyR#s	cCs[d}x8|dD],}|j|�r|t|�|_PqqWtt|�j|�dS(s�
        Pre-parse the command line to extract the value of the --testrunner
        option. This allows a test runner to define additional command line
        arguments.
        s
--testrunner=iN(t
startswithtlenRRRt
run_from_argv(Rtargvtoptiontarg((sF/tmp/pip-install-XxeQeY/django/django/core/management/commands/test.pyR'sc	CsYtt|j�}|jt|dd�}td|d|j|�d|j�d|�S(Ntoption_listtprogtusagetversion((RRRRtgetattrRRtget_version(Rt	prog_namet
subcommandttest_runner_classtoptions((sF/tmp/pip-install-XxeQeY/django/django/core/management/commands/test.pyt
create_parser4s	cOs�t|d�dkrAtjd�}tj�}|j|�ntt|�j||�t|d�dkr�|j|�ndS(Nt	verbosityispy.warnings(	tinttloggingt	getLoggert
StreamHandlert
addHandlerRRtexecutet
removeHandler(RtargsR%tloggerthandler((sF/tmp/pip-install-XxeQeY/django/django/core/management/commands/test.pyR-=scOs�ddlm}ddlm}|||jd��}t|jd��|d<|jd�dk	r�|dtjd<|d=n||�}|j	|�}|r�t
jt|��ndS(Ni����(R(RRR'RtDJANGO_LIVE_TEST_SERVER_ADDRESS(
tdjango.confRtdjango.test.utilsRtgetR(Rtostenviront	run_teststsystexittbool(Rttest_labelsR%RRt
TestRunnerRtfailures((sF/tmp/pip-install-XxeQeY/django/django/core/management/commands/test.pythandleLs
N(t__name__t
__module__RRRtTruetFalseRRR/trequires_model_validationRRR&R-R?(((sF/tmp/pip-install-XxeQeY/django/django/core/management/commands/test.pyRs*				
		
			(
R)R9R6toptparseRRR3Rtdjango.core.management.baseRR4RR(((sF/tmp/pip-install-XxeQeY/django/django/core/management/commands/test.pyt<module>s

https://t.me/AnonymousX5 - 2025