/usr/local/lib/python3.9/site-packages/django/core/management/commands/__pycache__
a Ӱ�h� � @ s` d dl Z d dlmZ d dlmZ d dlmZ d dlmZ d dl m Z mZmZ G dd� de�Z dS ) � N)�settings)�BaseCommand)�get_command_line_option)�get_max_test_processes)�NullTimeKeeper� TimeKeeper� get_runnerc s8 e Zd ZdZg ZdZ� fdd�Zdd� Zdd� Z� Z S ) �CommandzIDiscover and run tests in the specified modules or the current directory.Nc s t |d�| _t� �|� dS )z� Pre-parse the command line to extract the value of the --testrunner option. This allows a test runner to define additional command line arguments. �--testrunnerN)r �test_runner�super� run_from_argv)�self�argv�� __class__� �N/usr/local/lib/python3.9/site-packages/django/core/management/commands/test.pyr s zCommand.run_from_argvc C sh |j ddddd� |j dddd d d� |j dd dd� |j ddd� tt| j�}t|d�rd|�|� d S )N�argsZ test_label�*z_Module paths to test; can be modulename, modulename.TestCase or modulename.TestCase.test_method)�metavar�nargs�helpz --noinputz --no-input�store_false�interactivez:Tells Django to NOT prompt the user for input of any kind.)�action�destr z --failfast� store_truezDTells Django to stop running the test suite after first failed test.)r r r zhTells Django to use specified test runner class instead of the one specified by the TEST_RUNNER setting.)r � add_arguments)�add_argumentr r r �hasattrr )r �parserZtest_runner_classr r r r s2 � ��� zCommand.add_argumentsc O s� t t|d �}|�dd�r t� nt� }|�d�}|dkrBt� |d<