OwlCyberSecurity - MANAGER
Edit File: pluginopts.cpython-312.pyc
� ����U��g�����������������������������d�Z�ddlZ �ddlmZmZ�ddlmZ�ddlmZ�ddl mZ�ddlm Z �ddlmZ�dd lmZ�dd lmZ�ddlmZ�d��Zd ��Z�G�d��de�������Z�G�d��de�������Zd��Zy#�e $�r�Y��Kw�xY�w)a��� Adds a sphinx directive that can be used to automatically document a plugin. this:: .. autoplugin :: nose.plugins.foo :plugin: Pluggy produces:: .. automodule :: nose.plugins.foo Options ------- .. cmdoption :: --foo=BAR, --fooble=BAR Do the foo thing to the new thing. Plugin ------ .. autoclass :: nose.plugins.foo.Pluggy :members: Source ------ .. include :: path/to/nose/plugins/foo.py :literal: �����N)�nodes�utils)�ViewList)� directives)�resolve_name)�Plugin)�BuiltinPluginManager)�Config)�TestProgram)�isclassc ����������������������|d���} t��������| �������} |j������������������dd��������}|r t��������| |�������}nJt��������| �������D�]<��} t��������| | �������}t ��������|�������s�t��������|t���������������s�,|t��������us�5| �d| ��}�n�t����������������}|j������������������d| z��d��������|j������������������dd��������|j������������������dd��������|j������������������dd��������|j������������������dd�����������������}t����������������}|j������������������|i���������|D�]h��}|j������������������|j��������������������������d��������|j������������������d d��������|j������������������d |j������������������z���dz���d��������|j������������������dd���������j�|j������������������dd��������|j������������������d d��������|j������������������dd��������|j������������������d|z��d��������|j������������������dd��������|j������������������dd��������|j������������������dd��������|j������������������dd��������|j������������������d d��������|j������������������dt��������j������������������|j������������������d���t��������j ������������������j#������������������| j$������������������j'������������������dd���������������������z��d��������|j������������������dd��������|j������������������dd��������t)��������j*��������������������������}|j������������������|_��������|j,������������������j.������������������}|j,������������������j0������������������}g�|j,������������������_��������d|j,������������������_��������|j3������������������|d|d���������||j,������������������_��������||j,������������������_��������|j4������������������S�)Nr����plugin�.z.. automodule :: %s � <autodoc>���Options�-------� � � r���z------z.. autoclass :: %s z :members: z :show-inheritance: �Sourcez.. include :: %s �sourcez.pycz.pyz :literal: ������match_titles)r����get�getattr�dirr���� issubclassr���r����append� OptBucket�options�helpr���� relative_path�document�os�path�abspath�__file__�replacer����section�memo�title_styles� section_level�nested_parse�children)�dirname� argumentsr"����content�lineno�content_offset� block_text�state� state_machine�mod_name�mod� plug_name�obj�entry�rst�plug�opts�opt�node�surrounding_title_styles�surrounding_section_levels��� �E/opt/hc_python/lib/python3.12/site-packages/nose/sphinx/pluginopts.py�autoplugin_directiverF���1���s��������|�H� �x� �C����H�d�+�I���c�9�%����X�E��#�u�%�C��s�|� �3�� 7�C�v�<M�'/��7� �� ����*�C��J�J�&��1�;�?��J�J�r�;����J�J�y�+�&��J�J�y�+�&��J�J�r�;���5�D��;�D��L�L��r����� � �3�;�;�=�+�.�� � �7�K�(�� � �5�3�8�8�#�d�*�K�8�� � �4��%� ����J�J�x��%��J�J�x��%��J�J�r�;���J�J�%� �1�;�?��J�J���-��J�J�(�+�6��J�J�r�;����J�J�x��%��J�J�x��%��J�J� �5�#6�#6��&�&�x�0��������� 4� 4�V�U� C�D�$F�� F�� � � ��J�J���-��J�J�r�;���=�=�?�D��N�N�D�M�$�z�z�6�6�� %� � � 8� 8�� �E�J�J�� �E�J�J�� ���s�A�t�!��4�6�E�J�J��8�E�J�J���=�=������c ����������������������t��������t��������t������������������������} | j������������������t ��������j ���������������������������������} t ����������������}| j��������������������������j������������������d�������D�]��}|j������������������|d����������|j������������������dd��������|j������������������dd��������|j������������������dd��������| D�]h��} |j������������������| j��������������������������d��������|j������������������dd��������|j������������������d| j������������������z���dz���d��������|j������������������dd���������j�t��������j��������������������������}|j������������������|_��������|j������������������j ������������������}|j������������������j"������������������}g�|j������������������_��������d |j������������������_��������|j%������������������|d |d ���������||j������������������_��������||j������������������_��������|j&������������������S�)zproduces rst from nose help)�parserClass�pluginsr���r���r���r���r���r���r���r���r���r���)r ���r!���r ���� getParserr����usager����format_help�splitr ���r"���r#���r���r+���r%���r,���r-���r.���r/���r0���)r1���r2���r"���r3���r4���r5���r6���r7���r8����config�parserr>����linerA���rB���rC���rD���s��� rE����autohelp_directiverR���t���sm������� �0�2�4�F� � � �k�/�/�1� 2�F� �*�C��"�"�$�*�*�4�0��� � �4��%��1���J�J�y�+�&��J�J�y�+�&��J�J�r�;����� � �3�;�;�=�+�.�� � �7�K�(�� � �5�3�8�8�#�d�*�K�8�� � �4��%� �� ��=�=�?�D��N�N�D�M�$�z�z�6�6�� %� � � 8� 8�� �E�J�J�� �E�J�J�� ���s�A�t�!��4�6�E�J�J��8�E�J�J���=�=�rG���c��������������������&�����e�Zd�Zdd�Zd��Zd��Zd��Zy)r!���Nc������������������.�����g�|�_���������||�_��������||�_��������y��N)r@����doc�prog)�selfrV���rW���s��� rE����__init__zOptBucket.__init__����s�������� ������ rG���c������������������,�����t��������|�j�������������������������S�rU���)�iterr@����rX���s��� rE����__iter__zOptBucket.__iter__����s�������D�I�I��rG���c������������������n�����|�j�������������������j������������������d|�j�������������������������j������������������dd�������S�)Nz%progz: z:: )rV���r*���rW���r\���s��� rE���rM���zOptBucket.format_help����s*�������x�x�������3�;�;�E�6�J�JrG���c������������������L�����|�j�������������������j������������������t��������|i�|����������y�rU���)r@���r ����Opt�rX����arg�kws��� rE���� add_optionzOptBucket.add_option����s������� � ����c��R��)rG���)N� nosetests)�__name__� __module__�__qualname__rY���r]���rM���rd�����rG���rE���r!���r!�������s������� �K�*rG���r!���c�������������������������e�Zd�Zd��Zd��Zd��Zy)r`���c������������������������||�_���������|j������������������dd��������|�_��������|j������������������dd��������|�_��������|j������������������dd��������|�_��������|j������������������dd��������|�_��������y�)N�action�default�metavarr#���)r@����poprl���rm���rn���r#���ra���s��� rE���rY���zOpt.__init__����sQ�������� ��f�f�X�t�,����v�v�i��.����v�v�i��.����F�F�6�4�(�� rG���c�����������������������g�}|�j�������������������D�]:��}|}|�j������������������dvr|d|�j������������������|�������z��z ��}|j������������������|���������<�ddj ������������������|�������z���S�)N)� store_true�store_falsez=%sz.. cmdoption :: z, )r@���rl����metar ����join)rX����buf� optstring�descs��� rE���r"���zOpt.options����s`�����������I��D��{�{�"?�?���� � �)� 4�4�4���J�J�t�� �#� �"�D�I�I�c�N�2�2rG���c������������������"�����|�j�������������������xs�dS�)N�DEFAULT)rn���)rX���rv���s��� rE���rs���zOpt.meta����s�������|�|�(�y�(rG���N)rf���rg���rh���rY���r"���rs���ri���rG���rE���r`���r`�������s������)�3�)rG���r`���c�����������������������|�j������������������dt��������ddt��������j���������������������������|�j������������������dt��������dd��������y�)N� autopluginr���)r���r���r���)r����autohelpr���)r���r���r���)� add_directiverF���r���� unchangedrR���)�apps��� rE����setupr��������s>���������l�*�A�y�'�1�1����3�����j�"4�a��CrG���)�__doc__r&����docutilsr���r����docutils.statemachiner����docutils.parsers.rstr����ImportError� nose.utilr����nose.plugins.baser����nose.plugins.managerr ����nose.configr ���� nose.corer����inspectr���rF���rR����objectr!���r`���r����ri���rG���rE����<module>r�������sq������@� � �%�.�/��#��$��5����!���@�F�> *��� *� )�&��)�,D��g��� �� �s����A �� A(�'A(