| Server IP : 195.114.193.97 / Your IP : 216.73.217.93 Web Server : LiteSpeed System : Linux host 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 User : sembi4241 ( 1126) PHP Version : 8.1.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /lib/python3/dist-packages/jsonschema/tests/__pycache__/ |
Upload File : |
o
>��]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 urt| �S ttj��� �d�} | �� s t d��| S )N�JSON_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__�parent�sibling�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�
subprocess�check_output�sys�
executable�pathr �loads�decode�items)�selfr r r r r �_remotes, s ��zSuite._remotesc C s"