$L i |ddlmZddlZddlZddlZddlmZddlmZddl ZGdde Z dejvreejddz Z n)eejjjd z Z e j!se ej"e j%d j'Zej*j-d e j/d Dcgc]9}ej0||jj2d |j4;c}dZycc}w))PathN)Registry) UnresolvableceZdZdZy) SuiteNotFoundc y)NzCannot 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.)selfs n/mnt/ssd/data/python-lab/Trading/venv/lib/python3.12/site-packages/referencing/tests/test_referencing_suite.py__str__zSuiteNotFound.__str__ s  % N)__name__ __module__ __qualname__r r r r rr s r rREFERENCING_SUITEtestsz suite/testszspecifications.json test_pathz */**/*.json-)idc: t|jtjd}tj j | tj|j}|d}tj fd|djD}|dD]I}|j|5d|jvrtj d|j#|j%dd  }|j%d r7tj&t(5|j+|d dddn|j+|d }|j,|d k(sJ|j%d}|rc|j||5|j"j+|d }|j,|d k(sJ ddd|j%d}|rcdddLy#1swYxYw#1swY5xYw#1swYpxYw)Nrregistryc3JK|]\}}|j|fyw)N)create_resource).0uricontents specifications r z)test_referencing_suite..+s-) C m++H56)s #r)test normalizationz+APIs need to change for proper URL support.base_uri)r!errorreftargetthen)rr&) DIALECT_IDS relative_toSUITEparts referencing jsonschemaspecification_withjsonloads read_textrwith_resourcesitemsrstempytestxfailresolvergetraisesrlookupr) rsubtests dialect_idloadedrrr6resolvedr&rs @r test_referencing_suiter>sY2259??BCJ**==jIM ZZ ++- .Fj!Hz(()#J/557)Hw, ]]] % ,)..0 JK(($((:r2J(KHxx ]]<01OODK011$??4;7((DN:::xx'!Dt<C#+#4#4#;#;DK#H'00DNBBBC 88F+D  , ,,11CC , ,s>A0H0G8AH3HH8H =HH HH )pathlibrr.osr4r+rreferencing.exceptionsrreferencing.jsonschema Exceptionrenvironr)__file__parentis_dirr/joinpathr0r'mark parametrizeglobparamnamer3r>)eachs0r rOs / I "**$ /0 1G ;E N ! ! ( ( / /- ?E ||~ /djj(=>HHJK JJ}-   T!1!1 2!DII;?@,, s->D9