HEX
Server: Apache
System: Linux 185.122.168.184.host.secureserver.net 5.14.0-570.60.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Nov 5 05:00:59 EST 2025 x86_64
User: barbeatleanalyti (1024)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //var/opt/nydus/ops/referencing/tests/__pycache__/test_referencing_suite.cpython-39.pyc
a

�,�h	�@s�ddlmZddlZddlZddlZddlmZddlmZddl	ZGdd�de
�Zdejvrreejd�dZ
nee�jjjd	Z
e
��s�e��e�e
�d
����Zej�ddd
�e
�d�D��dd��ZdS)�)�PathN)�Registry)�Unresolvablec@seZdZdd�ZdS)�
SuiteNotFoundcCsdS)Nz�Cannot find the referencing suite. Set the REFERENCING_SUITE environment variable to the path to the suite, or run the test suite from alongside a full checkout of the git repository.�)�selfrr�Y/opt/nydus/tmp/pip-target-wkfpz8uv/lib/python/referencing/tests/test_referencing_suite.py�__str__
s�zSuiteNotFound.__str__N)�__name__�
__module__�__qualname__r	rrrrrsrZREFERENCING_SUITE�testszsuite/testszspecifications.json�	test_pathcCs*g|]"}tj||jj�d|j��d��qS)�-)�id)�pytest�param�parent�name�stem)�.0Zeachrrr�
<listcomp>!s�rz*/**/*.jsonc	
s�t|�t�jd}tj�|��t�|�	��}|d}t
���fdd�|d��D��}|dD�]4}|j
|d���d|jvr�t�d�|j|�d	d
�d�}|�d�r�t�t��|�|d
�Wd�n1s�0Yn�|�|d
�}|j|dk�sJ�|�d�}|�rv|j
||d��4|j�|d
�}|j|dk�sHJ�Wd�n1�s^0Y|�d�}�qWd�q`1�s�0Yq`dS)Nr�registryc3s |]\}}|��|�fVqdS)N)Zcreate_resource)r�uri�contents��
specificationrr�	<genexpr>+s�z)test_referencing_suite.<locals>.<genexpr>r
)�testZ
normalizationz+APIs need to change for proper URL support.�base_uri�)r�error�ref�target�then)rr$)�DIALECT_IDS�relative_to�SUITE�parts�referencingZ
jsonschemaZspecification_with�json�loads�	read_textrZwith_resources�itemsrrrZxfail�resolver�getZraisesr�lookupr)	rZsubtestsZ
dialect_id�loadedrrr.�resolvedr$rrr�test_referencing_suites.
�


.
4r3)�pathlibrr*�osrr)rZreferencing.exceptionsrZreferencing.jsonschema�	Exceptionr�environr'�__file__r�is_dirr+�joinpathr,r%�markZparametrize�globr3rrrr�<module>s(

��