403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.148.200.145
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/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

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

.�Se��@s�dZyddlmZWnek
r0dZZYnNXddlmZmZmZm	Z	m
Z
ddlmZddl
mZdd�ZGd	d
�d
e�ZdS)a�
nosetests setuptools command
----------------------------

The easiest way to run tests with nose is to use the `nosetests` setuptools
command::

  python setup.py nosetests

This command has one *major* benefit over the standard `test` command: *all
nose plugins are supported*.

To configure the `nosetests` command, add a [nosetests] section to your
setup.cfg. The [nosetests] section can contain any command line arguments that
nosetests supports. The differences between issuing an option on the command
line and adding it to setup.cfg are:

* In setup.cfg, the -- prefix must be excluded
* In setup.cfg, command line flags that take no arguments must be given an
  argument flag (1, T or TRUE for active, 0, F or FALSE for inactive)

Here's an example [nosetests] setup.cfg section::

  [nosetests]
  verbosity=1
  detailed-errors=1
  with-coverage=1
  cover-package=nose
  debug=nose.loader
  pdb=1
  pdb-failures=1

If you commonly run nosetests with a large number of options, using
the nosetests setuptools command and configuring with setup.cfg can
make running your tests much less tedious. (Note that the same options
and format supported in setup.cfg are supported in all other config
files, and the nosetests script will also load config files.)

Another reason to run tests with the command is that the command will
install packages listed in your `tests_require`, as well as doing a
complete build of your package before running tests. For packages with
dependencies or that build C extensions, using the setuptools command
can be more convenient than building by hand and running the nosetests
script.

Bootstrapping
-------------

If you are distributing your project and want users to be able to run tests
without having to install nose themselves, add nose to the setup_requires
section of your setup()::

  setup(
      # ...
      setup_requires=['nose>=1.0']
      )

This will direct setuptools to download and activate nose during the setup
process, making the ``nosetests`` command available.

�)�CommandN)�Config�option_blacklist�user_config_files�flag�_bool)�TestProgram)�DefaultPluginManagercCs�g}x||jD]r}|jddd�tkr(q|jddd�}|jdkrL|d}d}|jrh|jddd�}|�|||jpxdf�qW|S)zAconvert a optparse option list into a distutils option tuple listr�N)�
store_true�store_false�=��)�option_list�
_long_optsr�actionZ_short_opts�append�help)�parserZopt_list�optZ	long_nameZ
short_name�r�>/opt/alt/python37/lib/python3.7/site-packages/nose/commands.py�get_user_optionsIs
rc@sPeZdZdZee�e�d�Ze��Z	e
e	�Zdd�Zdd�Z
dd�Zd	d
�ZdS)�	nosetestszRun unit tests using nosetests)�filesZpluginscCsVi|_xD|jjD]8}|jddd�}|�dd�}||j|<t||d�qWd|_dS)zWcreate the member variables, but change hyphens to
            underscores
            rr
N�-�_)�option_to_cmds�_nosetests__parserrr�replace�setattr�attr)�selfr�cmd_name�option_namerrr�initialize_options`s
znosetests.initialize_optionscCsdS)znothing to do hereNr)r#rrr�finalize_optionsmsznosetests.finalize_optionsc	Cs4t|jdd�rh|�d�}d|_|��|�d�}|j}|�d�}||_|��|�d�}d|_|��n"|�d�|�d�}d|_|��|jjr�|j�	|jj�|jj
r�|j�	|jj
�|�d�}dd	|jg}xPt|j�
��D]>\}}	|tkr�q�t||�}
|
d
k	r�|�|�|�dd�|
��q�Wt||jd
�d
S)zhensure tests are capable of being run, then
            run nose.main with a reconstructed argument list�use_2to3F�build_pyr�egg_info�	build_extrrz--whereNrr)�argv�config)�getattr�distribution�get_finalized_command�inplace�run�	build_lib�egg_base�run_command�install_requires�fetch_build_eggs�
tests_require�listr�itemsr�extend�cfgToArgr r�_nosetests__config)r#r)�bpy_cmd�
build_pathr*r+�ei_cmdr,r%r$�valuerrrr2qs@










z
nosetests.runcCs`g}d|}|j�|�}|jdkrNt|�s:td||f��t|�r\|�|�n|�||g�|S)Nz--)rrzInvalid value '%s' for '%s')rZ
get_optionrr�
ValueErrorrrr;)r#�optnamerAr,Zlong_optnamerrrrr<�s
znosetests.cfgToArgN)�__name__�
__module__�__qualname__�descriptionrrr	r=Z	getParserrr�user_optionsr&r'r2r<rrrrrYs

/r)�__doc__�
setuptoolsr�ImportErrorrZnose.configrrrrrZ	nose.corerZnose.pluginsr	rrrrr�<module>=s

Youez - 2016 - github.com/yon3zu
LinuXploit