| Server IP : 138.197.176.125 / Your IP : 216.73.217.54 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/root/lib/python3/dist-packages/jsonschema/tests/__pycache__/ |
Upload File : |
U
>��]H � @ s� d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl m
Z
ddlZddlm
Z
ddlmZ ddlZdd� Zejd d
�G dd� de��Zejd d
�G d
d� de��Zejd dd�G dd� de��Zdd� ZdS )z=
Python representations of the JSON Schema Test Suite tests.
� )�partialN)�FilePath)�PY3)�
validatorsc C sD t j�d�} | d k rt| �S ttj��� �d�} | �� s@t d��| S )NZJSON_SCHEMA_TEST_SUITE�jsonz�Can't find the JSON-Schema-Test-Suite directory. Set the 'JSON_SCHEMA_TEST_SUITE' environment variable or run the tests from alongside a checkout of the suite.)
�os�environ�getr �
jsonschema�__file__�parentZsibling�isdir�
ValueError)�root� r �9/usr/lib/python3/dist-packages/jsonschema/tests/_suite.py�_find_suite s �r T)�hashc @ s6 e Zd Zeje�e�d�Zdd� Zdd� Z dd� Z
dS ) �Suite)�defaultc C sB | j �ddg�}t�tj|jdg�}dd� t�|� d���
� D �S )N�bin�jsonschema_suite�remotesc S s i | ]\}}d | |�qS )zhttp://localhost:1234/r )�.0�name�schemar r r �
<dictcomp>1 s � z"Suite._remotes.<locals>.<dictcomp>�utf-8)�_root�
descendant�
subprocessZcheck_output�sys�
executable�pathr �loads�decode�items)�selfr r r r r �_remotes, s ��zSuite._remotesc C s"