관리-도구
편집 파일: _suite.cpython-39.opt-1.pyc
a 5q]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 )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 �;/usr/lib/python3.9/site-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"